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 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
614 return stack_frame; | 614 return stack_frame; |
615 } | 615 } |
616 | 616 |
617 Handle<JSObject> NewStackFrameObject(WasmFrame* frame) { | 617 Handle<JSObject> NewStackFrameObject(WasmFrame* frame) { |
618 Handle<JSObject> stack_frame = | 618 Handle<JSObject> stack_frame = |
619 factory()->NewJSObject(isolate_->object_function()); | 619 factory()->NewJSObject(isolate_->object_function()); |
620 | 620 |
621 if (!function_key_.is_null()) { | 621 if (!function_key_.is_null()) { |
622 Handle<Object> fun_name = handle(frame->function_name(), isolate_); | 622 Handle<Object> fun_name = handle(frame->function_name(), isolate_); |
623 if (fun_name->IsUndefined()) | 623 if (fun_name->IsUndefined()) |
624 fun_name = isolate_->factory()->InternalizeUtf8String( | 624 fun_name = isolate_->factory()->InternalizeUtf8String( |
Yang
2016/05/13 07:41:10
We should not be using InternalizeUtf8String here.
Clemens Hammacher
2016/05/17 17:43:24
Done.
| |
625 Vector<const char>("<WASM>")); | 625 Vector<const char>("<WASM UNNAMED>")); |
626 JSObject::AddProperty(stack_frame, function_key_, fun_name, NONE); | 626 JSObject::AddProperty(stack_frame, function_key_, fun_name, NONE); |
627 } | 627 } |
628 // Encode the function index as line number. | 628 // Encode the function index as line number. |
629 if (!line_key_.is_null()) { | 629 if (!line_key_.is_null()) { |
630 JSObject::AddProperty( | 630 JSObject::AddProperty( |
631 stack_frame, line_key_, | 631 stack_frame, line_key_, |
632 isolate_->factory()->NewNumberFromInt(frame->function_index()), NONE); | 632 isolate_->factory()->NewNumberFromInt(frame->function_index()), NONE); |
633 } | 633 } |
634 // Encode the byte offset as column. | 634 // Encode the byte offset as column. |
635 if (!column_key_.is_null()) { | 635 if (!column_key_.is_null()) { |
(...skipping 2420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3056 // Then check whether this scope intercepts. | 3056 // Then check whether this scope intercepts. |
3057 if ((flag & intercept_mask_)) { | 3057 if ((flag & intercept_mask_)) { |
3058 intercepted_flags_ |= flag; | 3058 intercepted_flags_ |= flag; |
3059 return true; | 3059 return true; |
3060 } | 3060 } |
3061 return false; | 3061 return false; |
3062 } | 3062 } |
3063 | 3063 |
3064 } // namespace internal | 3064 } // namespace internal |
3065 } // namespace v8 | 3065 } // namespace v8 |
OLD | NEW |