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

Side by Side Diff: src/compiler/access-builder.cc

Issue 2117403002: [compiler] Fix AccessBuilder::ForNameHashField (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/compiler/access-builder.h" 5 #include "src/compiler/access-builder.h"
6 6
7 #include "src/contexts.h" 7 #include "src/contexts.h"
8 #include "src/frames.h" 8 #include "src/frames.h"
9 #include "src/handles-inl.h" 9 #include "src/handles-inl.h"
10 #include "src/heap/heap.h" 10 #include "src/heap/heap.h"
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 FieldAccess AccessBuilder::ForMapPrototype() { 362 FieldAccess AccessBuilder::ForMapPrototype() {
363 FieldAccess access = { 363 FieldAccess access = {
364 kTaggedBase, Map::kPrototypeOffset, Handle<Name>(), 364 kTaggedBase, Map::kPrototypeOffset, Handle<Name>(),
365 Type::TaggedPointer(), MachineType::AnyTagged(), kPointerWriteBarrier}; 365 Type::TaggedPointer(), MachineType::AnyTagged(), kPointerWriteBarrier};
366 return access; 366 return access;
367 } 367 }
368 368
369 369
370 // static 370 // static
371 FieldAccess AccessBuilder::ForNameHashField() { 371 FieldAccess AccessBuilder::ForNameHashField() {
372 FieldAccess access = { 372 FieldAccess access = {kTaggedBase, Name::kHashFieldOffset,
373 kTaggedBase, Name::kHashFieldOffset, Handle<Name>(), 373 Handle<Name>(), Type::Internal(),
374 Type::Internal(), MachineType::Pointer(), kNoWriteBarrier}; 374 MachineType::Uint32(), kNoWriteBarrier};
375 return access; 375 return access;
376 } 376 }
377 377
378 // static 378 // static
379 FieldAccess AccessBuilder::ForStringLength() { 379 FieldAccess AccessBuilder::ForStringLength() {
380 FieldAccess access = {kTaggedBase, 380 FieldAccess access = {kTaggedBase,
381 String::kLengthOffset, 381 String::kLengthOffset,
382 Handle<Name>(), 382 Handle<Name>(),
383 TypeCache::Get().kStringLengthType, 383 TypeCache::Get().kStringLengthType,
384 MachineType::AnyTagged(), 384 MachineType::AnyTagged(),
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 } 550 }
551 UNREACHABLE(); 551 UNREACHABLE();
552 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(), 552 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(),
553 kNoWriteBarrier}; 553 kNoWriteBarrier};
554 return access; 554 return access;
555 } 555 }
556 556
557 } // namespace compiler 557 } // namespace compiler
558 } // namespace internal 558 } // namespace internal
559 } // namespace v8 559 } // namespace v8
OLDNEW
« 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