Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/runtime/runtime-utils.h" | 5 #include "src/runtime/runtime-utils.h" |
| 6 | 6 |
| 7 #include "src/arguments.h" | 7 #include "src/arguments.h" |
| 8 #include "src/isolate-inl.h" | 8 #include "src/isolate-inl.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 211 | 211 |
| 212 | 212 |
| 213 // TODO(rmcilroy): Remove this once the interpreter supports runtime functions | 213 // TODO(rmcilroy): Remove this once the interpreter supports runtime functions |
| 214 // which return a pair. | 214 // which return a pair. |
| 215 RUNTIME_FUNCTION(Runtime_InterpreterLoadLookupSlotReceiver) { | 215 RUNTIME_FUNCTION(Runtime_InterpreterLoadLookupSlotReceiver) { |
| 216 ObjectPair result = | 216 ObjectPair result = |
| 217 Runtime_LoadLookupSlot(args.length(), args.arguments(), isolate); | 217 Runtime_LoadLookupSlot(args.length(), args.arguments(), isolate); |
| 218 return result.y; | 218 return result.y; |
| 219 } | 219 } |
| 220 | 220 |
| 221 | |
| 222 // Declared in runtime.cc. | |
| 223 // TODO(mythria): Remove this once the interpreter supports projecting out | |
| 224 // unnecessary outputs. | |
| 225 ObjectPair Runtime_LoadLookupSlotNoReferenceError(int args_length, | |
| 226 Object** args_object, | |
| 227 Isolate* isolate); | |
| 228 | |
| 229 | |
| 230 // TODO(mythria): Remove this once the interpreter supports projecting out | |
| 231 // unnecessary outputs. | |
| 232 RUNTIME_FUNCTION(Runtime_InterpreterLoadLookupSlotNoReferenceErrorValue) { | |
|
Michael Starzinger
2015/12/14 21:25:04
The first projection should actually be usable wit
| |
| 233 ObjectPair result = Runtime_LoadLookupSlotNoReferenceError( | |
| 234 args.length(), args.arguments(), isolate); | |
| 235 return result.x; | |
|
Michael Starzinger
2015/12/14 21:25:04
This won't compile on 32-bit architectures.
| |
| 236 } | |
| 237 | |
| 221 } // namespace internal | 238 } // namespace internal |
| 222 } // namespace v8 | 239 } // namespace v8 |
| OLD | NEW |