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

Unified Diff: src/code-stubs.cc

Issue 2200713002: [turbofan] Use assembler->LoadMap(). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@typeof
Patch Set: Created 4 years, 5 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.cc
diff --git a/src/code-stubs.cc b/src/code-stubs.cc
index 46d6c82f856b1b94073a42d9112e93a33428d363..c663cd8878944431daf67e8a20a43e8264fb208b 100644
--- a/src/code-stubs.cc
+++ b/src/code-stubs.cc
@@ -511,9 +511,7 @@ void AllocateHeapNumberStub::GenerateAssembly(
const { \
compiler::Node* result = \
assembler->Allocate(Simd128Value::kSize, CodeStubAssembler::kNone); \
- compiler::Node* map_offset = \
- assembler->IntPtrConstant(HeapObject::kMapOffset - kHeapObjectTag); \
- compiler::Node* map = assembler->IntPtrAdd(result, map_offset); \
+ compiler::Node* map = assembler->LoadMap(result); \
assembler->StoreNoWriteBarrier( \
MachineRepresentation::kTagged, map, \
assembler->HeapConstant(isolate()->factory()->type##_map())); \
@@ -598,7 +596,7 @@ compiler::Node* AddStub::Generate(CodeStubAssembler* assembler,
assembler->Bind(&if_rhsisnotsmi);
{
// Load the map of {rhs}.
- Node* rhs_map = assembler->LoadObjectField(rhs, HeapObject::kMapOffset);
+ Node* rhs_map = assembler->LoadMap(rhs);
// Check if the {rhs} is a HeapNumber.
Label if_rhsisnumber(assembler),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698