OSDN Git Service

base: replace raw pointers for out-parameters with safer out<T>
authorIgor Murashkin <iam@google.com>
Thu, 23 Jul 2015 23:53:53 +0000 (16:53 -0700)
committerIgor Murashkin <iam@google.com>
Thu, 30 Jul 2015 21:36:01 +0000 (14:36 -0700)
commitfb326cffc679cab8eb873b9e44795706f023cb3c
tree7ad4b524299195c42d38a5e7ef01b7fdb4c30e86
parent8433bb8a3120d064de97a692d98341d9bc29a985
base: replace raw pointers for out-parameters with safer out<T>

Add a zero-cost type-safe abstraction for representing "out" parameters
(i.e. when the calling function has to return multiple results out
by-reference into the argument slots instead of using the return slot).

Change-Id: I33a941e4863b6bed71d2bfa43d7f48e9b111f83f
build/Android.gtest.mk
runtime/base/out.h [new file with mode: 0644]
runtime/base/out_test.cc [new file with mode: 0644]
runtime/interpreter/interpreter_common.h
runtime/lambda/box_table.cc
runtime/lambda/box_table.h
runtime/stack.cc