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 2065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2076 | 2076 |
2077 // Clear the oneshot breakpoints so that the debugger does not step further. | 2077 // Clear the oneshot breakpoints so that the debugger does not step further. |
2078 isolate->debug()->ClearStepping(); | 2078 isolate->debug()->ClearStepping(); |
2079 return result; | 2079 return result; |
2080 } | 2080 } |
2081 | 2081 |
2082 | 2082 |
2083 static Handle<JSObject> NewJSObjectWithNullProto(Isolate* isolate) { | 2083 static Handle<JSObject> NewJSObjectWithNullProto(Isolate* isolate) { |
2084 Handle<JSObject> result = | 2084 Handle<JSObject> result = |
2085 isolate->factory()->NewJSObject(isolate->object_function()); | 2085 isolate->factory()->NewJSObject(isolate->object_function()); |
2086 Handle<Map> new_map = Map::Copy(Handle<Map>(result->map())); | 2086 Handle<Map> new_map = |
| 2087 Map::Copy(Handle<Map>(result->map()), "ObjectWithNullProto"); |
2087 new_map->set_prototype(*isolate->factory()->null_value()); | 2088 new_map->set_prototype(*isolate->factory()->null_value()); |
2088 JSObject::MigrateToMap(result, new_map); | 2089 JSObject::MigrateToMap(result, new_map); |
2089 return result; | 2090 return result; |
2090 } | 2091 } |
2091 | 2092 |
2092 | 2093 |
2093 // Evaluate a piece of JavaScript in the context of a stack frame for | 2094 // Evaluate a piece of JavaScript in the context of a stack frame for |
2094 // debugging. Things that need special attention are: | 2095 // debugging. Things that need special attention are: |
2095 // - Parameters and stack-allocated locals need to be materialized. Altered | 2096 // - Parameters and stack-allocated locals need to be materialized. Altered |
2096 // values need to be written back to the stack afterwards. | 2097 // values need to be written back to the stack afterwards. |
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2721 return Smi::FromInt(isolate->debug()->is_active()); | 2722 return Smi::FromInt(isolate->debug()->is_active()); |
2722 } | 2723 } |
2723 | 2724 |
2724 | 2725 |
2725 RUNTIME_FUNCTION(RuntimeReference_DebugBreakInOptimizedCode) { | 2726 RUNTIME_FUNCTION(RuntimeReference_DebugBreakInOptimizedCode) { |
2726 UNIMPLEMENTED(); | 2727 UNIMPLEMENTED(); |
2727 return NULL; | 2728 return NULL; |
2728 } | 2729 } |
2729 } | 2730 } |
2730 } // namespace v8::internal | 2731 } // namespace v8::internal |
OLD | NEW |