| 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/compiler.h" | 9 #include "src/compiler.h" |
| 10 #include "src/debug.h" | 10 #include "src/debug.h" |
| (...skipping 2165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2176 isolate->debug()->ClearStepping(); | 2176 isolate->debug()->ClearStepping(); |
| 2177 return result; | 2177 return result; |
| 2178 } | 2178 } |
| 2179 | 2179 |
| 2180 | 2180 |
| 2181 static Handle<JSObject> NewJSObjectWithNullProto(Isolate* isolate) { | 2181 static Handle<JSObject> NewJSObjectWithNullProto(Isolate* isolate) { |
| 2182 Handle<JSObject> result = | 2182 Handle<JSObject> result = |
| 2183 isolate->factory()->NewJSObject(isolate->object_function()); | 2183 isolate->factory()->NewJSObject(isolate->object_function()); |
| 2184 Handle<Map> new_map = | 2184 Handle<Map> new_map = |
| 2185 Map::Copy(Handle<Map>(result->map()), "ObjectWithNullProto"); | 2185 Map::Copy(Handle<Map>(result->map()), "ObjectWithNullProto"); |
| 2186 new_map->SetPrototype(isolate->factory()->null_value()); | 2186 Map::SetPrototype(new_map, isolate->factory()->null_value()); |
| 2187 JSObject::MigrateToMap(result, new_map); | 2187 JSObject::MigrateToMap(result, new_map); |
| 2188 return result; | 2188 return result; |
| 2189 } | 2189 } |
| 2190 | 2190 |
| 2191 | 2191 |
| 2192 // Evaluate a piece of JavaScript in the context of a stack frame for | 2192 // Evaluate a piece of JavaScript in the context of a stack frame for |
| 2193 // debugging. Things that need special attention are: | 2193 // debugging. Things that need special attention are: |
| 2194 // - Parameters and stack-allocated locals need to be materialized. Altered | 2194 // - Parameters and stack-allocated locals need to be materialized. Altered |
| 2195 // values need to be written back to the stack afterwards. | 2195 // values need to be written back to the stack afterwards. |
| 2196 // - The arguments object needs to materialized. | 2196 // - The arguments object needs to materialized. |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2819 return Smi::FromInt(isolate->debug()->is_active()); | 2819 return Smi::FromInt(isolate->debug()->is_active()); |
| 2820 } | 2820 } |
| 2821 | 2821 |
| 2822 | 2822 |
| 2823 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { | 2823 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { |
| 2824 UNIMPLEMENTED(); | 2824 UNIMPLEMENTED(); |
| 2825 return NULL; | 2825 return NULL; |
| 2826 } | 2826 } |
| 2827 } | 2827 } |
| 2828 } // namespace v8::internal | 2828 } // namespace v8::internal |
| OLD | NEW |