| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/arguments.h" | 8 #include "src/arguments.h" |
| 9 #include "src/frames-inl.h" | 9 #include "src/frames-inl.h" |
| 10 #include "src/runtime/runtime-utils.h" | 10 #include "src/runtime/runtime-utils.h" |
| (...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1099 | 1099 |
| 1100 // Lookup in the initial Object.prototype object. | 1100 // Lookup in the initial Object.prototype object. |
| 1101 Handle<Object> result; | 1101 Handle<Object> result; |
| 1102 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( | 1102 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
| 1103 isolate, result, | 1103 isolate, result, |
| 1104 Object::GetProperty(isolate->initial_object_prototype(), key)); | 1104 Object::GetProperty(isolate->initial_object_prototype(), key)); |
| 1105 return *result; | 1105 return *result; |
| 1106 } | 1106 } |
| 1107 | 1107 |
| 1108 | 1108 |
| 1109 RUNTIME_FUNCTION(RuntimeReference_ArgumentsLength) { | 1109 RUNTIME_FUNCTION(Runtime_ArgumentsLength) { |
| 1110 SealHandleScope shs(isolate); | 1110 SealHandleScope shs(isolate); |
| 1111 DCHECK(args.length() == 0); | 1111 DCHECK(args.length() == 0); |
| 1112 JavaScriptFrameIterator it(isolate); | 1112 JavaScriptFrameIterator it(isolate); |
| 1113 JavaScriptFrame* frame = it.frame(); | 1113 JavaScriptFrame* frame = it.frame(); |
| 1114 return Smi::FromInt(frame->GetArgumentsLength()); | 1114 return Smi::FromInt(frame->GetArgumentsLength()); |
| 1115 } | 1115 } |
| 1116 | 1116 |
| 1117 | 1117 |
| 1118 RUNTIME_FUNCTION(RuntimeReference_Arguments) { | 1118 RUNTIME_FUNCTION(Runtime_Arguments) { |
| 1119 SealHandleScope shs(isolate); | 1119 SealHandleScope shs(isolate); |
| 1120 return __RT_impl_Runtime_GetArgumentsProperty(args, isolate); | 1120 return __RT_impl_Runtime_GetArgumentsProperty(args, isolate); |
| 1121 } | 1121 } |
| 1122 } | 1122 } |
| 1123 } // namespace v8::internal | 1123 } // namespace v8::internal |
| OLD | NEW |