OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/isolate.h" | 5 #include "src/isolate.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #include <fstream> // NOLINT(readability/streams) | 9 #include <fstream> // NOLINT(readability/streams) |
10 #include <sstream> | 10 #include <sstream> |
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 | 627 |
628 Handle<JSObject> NewStackFrameObject(Handle<JSFunction> fun, int position, | 628 Handle<JSObject> NewStackFrameObject(Handle<JSFunction> fun, int position, |
629 bool is_constructor) { | 629 bool is_constructor) { |
630 Handle<JSObject> stack_frame = | 630 Handle<JSObject> stack_frame = |
631 factory()->NewJSObject(isolate_->object_function()); | 631 factory()->NewJSObject(isolate_->object_function()); |
632 Handle<Script> script(Script::cast(fun->shared()->script()), isolate_); | 632 Handle<Script> script(Script::cast(fun->shared()->script()), isolate_); |
633 | 633 |
634 if (!line_key_.is_null()) { | 634 if (!line_key_.is_null()) { |
635 Script::PositionInfo info; | 635 Script::PositionInfo info; |
636 bool valid_pos = | 636 bool valid_pos = |
637 script->GetPositionInfo(position, &info, Script::WITH_OFFSET); | 637 Script::GetPositionInfo(script, position, &info, Script::WITH_OFFSET); |
638 | 638 |
639 if (!column_key_.is_null() && valid_pos) { | 639 if (!column_key_.is_null() && valid_pos) { |
640 JSObject::AddProperty(stack_frame, column_key_, | 640 JSObject::AddProperty(stack_frame, column_key_, |
641 handle(Smi::FromInt(info.column + 1), isolate_), | 641 handle(Smi::FromInt(info.column + 1), isolate_), |
642 NONE); | 642 NONE); |
643 } | 643 } |
644 JSObject::AddProperty(stack_frame, line_key_, | 644 JSObject::AddProperty(stack_frame, line_key_, |
645 handle(Smi::FromInt(info.line + 1), isolate_), | 645 handle(Smi::FromInt(info.line + 1), isolate_), |
646 NONE); | 646 NONE); |
647 } | 647 } |
(...skipping 1614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2262 heap_profiler_ = NULL; | 2262 heap_profiler_ = NULL; |
2263 | 2263 |
2264 cancelable_task_manager()->CancelAndWait(); | 2264 cancelable_task_manager()->CancelAndWait(); |
2265 | 2265 |
2266 heap_.TearDown(); | 2266 heap_.TearDown(); |
2267 logger_->TearDown(); | 2267 logger_->TearDown(); |
2268 | 2268 |
2269 delete interpreter_; | 2269 delete interpreter_; |
2270 interpreter_ = NULL; | 2270 interpreter_ = NULL; |
2271 | 2271 |
2272 | |
2273 delete compiler_dispatcher_tracer_; | 2272 delete compiler_dispatcher_tracer_; |
2274 compiler_dispatcher_tracer_ = nullptr; | 2273 compiler_dispatcher_tracer_ = nullptr; |
2275 | 2274 |
2276 delete cpu_profiler_; | 2275 delete cpu_profiler_; |
2277 cpu_profiler_ = NULL; | 2276 cpu_profiler_ = NULL; |
2278 | 2277 |
2279 code_event_dispatcher_.reset(); | 2278 code_event_dispatcher_.reset(); |
2280 | 2279 |
2281 delete root_index_map_; | 2280 delete root_index_map_; |
2282 root_index_map_ = NULL; | 2281 root_index_map_ = NULL; |
(...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3489 // Then check whether this scope intercepts. | 3488 // Then check whether this scope intercepts. |
3490 if ((flag & intercept_mask_)) { | 3489 if ((flag & intercept_mask_)) { |
3491 intercepted_flags_ |= flag; | 3490 intercepted_flags_ |= flag; |
3492 return true; | 3491 return true; |
3493 } | 3492 } |
3494 return false; | 3493 return false; |
3495 } | 3494 } |
3496 | 3495 |
3497 } // namespace internal | 3496 } // namespace internal |
3498 } // namespace v8 | 3497 } // namespace v8 |
OLD | NEW |