Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: src/frames.cc

Issue 2452543003: Don't wrap roots in Handle just to dereference immediately. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/builtins/builtins-string.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/frames.h" 5 #include "src/frames.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after
1487 } 1487 }
1488 1488
1489 void WasmFrame::Iterate(ObjectVisitor* v) const { IterateCompiledFrame(v); } 1489 void WasmFrame::Iterate(ObjectVisitor* v) const { IterateCompiledFrame(v); }
1490 1490
1491 Address WasmFrame::GetCallerStackPointer() const { 1491 Address WasmFrame::GetCallerStackPointer() const {
1492 return fp() + ExitFrameConstants::kCallerSPOffset; 1492 return fp() + ExitFrameConstants::kCallerSPOffset;
1493 } 1493 }
1494 1494
1495 Object* WasmFrame::wasm_instance() const { 1495 Object* WasmFrame::wasm_instance() const {
1496 Object* ret = wasm::GetOwningWasmInstance(LookupCode()); 1496 Object* ret = wasm::GetOwningWasmInstance(LookupCode());
1497 if (ret == nullptr) ret = *(isolate()->factory()->undefined_value()); 1497 if (ret == nullptr) ret = isolate()->heap()->undefined_value();
1498 return ret; 1498 return ret;
1499 } 1499 }
1500 1500
1501 uint32_t WasmFrame::function_index() const { 1501 uint32_t WasmFrame::function_index() const {
1502 FixedArray* deopt_data = LookupCode()->deoptimization_data(); 1502 FixedArray* deopt_data = LookupCode()->deoptimization_data();
1503 DCHECK(deopt_data->length() == 2); 1503 DCHECK(deopt_data->length() == 2);
1504 return Smi::cast(deopt_data->get(1))->value(); 1504 return Smi::cast(deopt_data->get(1))->value();
1505 } 1505 }
1506 1506
1507 Script* WasmFrame::script() const { 1507 Script* WasmFrame::script() const {
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
1963 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { 1963 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) {
1964 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); 1964 StackFrame* frame = AllocateFrameCopy(it.frame(), zone);
1965 list.Add(frame, zone); 1965 list.Add(frame, zone);
1966 } 1966 }
1967 return list.ToVector(); 1967 return list.ToVector();
1968 } 1968 }
1969 1969
1970 1970
1971 } // namespace internal 1971 } // namespace internal
1972 } // namespace v8 1972 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins/builtins-string.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698