| 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/debug.h" | 9 #include "src/debug.h" |
| 10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
| (...skipping 2151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2162 isolate->debug()->ClearStepping(); | 2162 isolate->debug()->ClearStepping(); |
| 2163 return result; | 2163 return result; |
| 2164 } | 2164 } |
| 2165 | 2165 |
| 2166 | 2166 |
| 2167 static Handle<JSObject> NewJSObjectWithNullProto(Isolate* isolate) { | 2167 static Handle<JSObject> NewJSObjectWithNullProto(Isolate* isolate) { |
| 2168 Handle<JSObject> result = | 2168 Handle<JSObject> result = |
| 2169 isolate->factory()->NewJSObject(isolate->object_function()); | 2169 isolate->factory()->NewJSObject(isolate->object_function()); |
| 2170 Handle<Map> new_map = | 2170 Handle<Map> new_map = |
| 2171 Map::Copy(Handle<Map>(result->map()), "ObjectWithNullProto"); | 2171 Map::Copy(Handle<Map>(result->map()), "ObjectWithNullProto"); |
| 2172 new_map->set_prototype(*isolate->factory()->null_value()); | 2172 new_map->SetPrototype(isolate->factory()->null_value()); |
| 2173 JSObject::MigrateToMap(result, new_map); | 2173 JSObject::MigrateToMap(result, new_map); |
| 2174 return result; | 2174 return result; |
| 2175 } | 2175 } |
| 2176 | 2176 |
| 2177 | 2177 |
| 2178 // Evaluate a piece of JavaScript in the context of a stack frame for | 2178 // Evaluate a piece of JavaScript in the context of a stack frame for |
| 2179 // debugging. Things that need special attention are: | 2179 // debugging. Things that need special attention are: |
| 2180 // - Parameters and stack-allocated locals need to be materialized. Altered | 2180 // - Parameters and stack-allocated locals need to be materialized. Altered |
| 2181 // values need to be written back to the stack afterwards. | 2181 // values need to be written back to the stack afterwards. |
| 2182 // - The arguments object needs to materialized. | 2182 // - The arguments object needs to materialized. |
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2809 return Smi::FromInt(isolate->debug()->is_active()); | 2809 return Smi::FromInt(isolate->debug()->is_active()); |
| 2810 } | 2810 } |
| 2811 | 2811 |
| 2812 | 2812 |
| 2813 RUNTIME_FUNCTION(RuntimeReference_DebugBreakInOptimizedCode) { | 2813 RUNTIME_FUNCTION(RuntimeReference_DebugBreakInOptimizedCode) { |
| 2814 UNIMPLEMENTED(); | 2814 UNIMPLEMENTED(); |
| 2815 return NULL; | 2815 return NULL; |
| 2816 } | 2816 } |
| 2817 } | 2817 } |
| 2818 } // namespace v8::internal | 2818 } // namespace v8::internal |
| OLD | NEW |