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

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

Issue 1906823002: Move of the type feedback vector to the closure. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 4 years, 6 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 | « src/compiler/access-builder.h ('k') | src/compiler/ast-graph-builder.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 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 FieldAccess AccessBuilder::ForJSFunctionSharedFunctionInfo() { 91 FieldAccess AccessBuilder::ForJSFunctionSharedFunctionInfo() {
92 FieldAccess access = {kTaggedBase, 92 FieldAccess access = {kTaggedBase,
93 JSFunction::kSharedFunctionInfoOffset, 93 JSFunction::kSharedFunctionInfoOffset,
94 Handle<Name>(), 94 Handle<Name>(),
95 Type::Any(), 95 Type::Any(),
96 MachineType::AnyTagged(), 96 MachineType::AnyTagged(),
97 kPointerWriteBarrier}; 97 kPointerWriteBarrier};
98 return access; 98 return access;
99 } 99 }
100 100
101
102 // static 101 // static
103 FieldAccess AccessBuilder::ForJSFunctionLiterals() { 102 FieldAccess AccessBuilder::ForJSFunctionLiterals() {
104 FieldAccess access = { 103 FieldAccess access = {
105 kTaggedBase, JSFunction::kLiteralsOffset, Handle<Name>(), 104 kTaggedBase, JSFunction::kLiteralsOffset, Handle<Name>(),
106 Type::Internal(), MachineType::AnyTagged(), kPointerWriteBarrier}; 105 Type::Internal(), MachineType::AnyTagged(), kPointerWriteBarrier};
107 return access; 106 return access;
108 } 107 }
109 108
110 // static 109 // static
111 FieldAccess AccessBuilder::ForJSFunctionCodeEntry() { 110 FieldAccess AccessBuilder::ForJSFunctionCodeEntry() {
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 465
467 466
468 // static 467 // static
469 FieldAccess AccessBuilder::ForPropertyCellValue(Type* type) { 468 FieldAccess AccessBuilder::ForPropertyCellValue(Type* type) {
470 FieldAccess access = { 469 FieldAccess access = {
471 kTaggedBase, PropertyCell::kValueOffset, Handle<Name>(), 470 kTaggedBase, PropertyCell::kValueOffset, Handle<Name>(),
472 type, MachineType::AnyTagged(), kFullWriteBarrier}; 471 type, MachineType::AnyTagged(), kFullWriteBarrier};
473 return access; 472 return access;
474 } 473 }
475 474
476
477 // static
478 FieldAccess AccessBuilder::ForSharedFunctionInfoTypeFeedbackVector() {
479 FieldAccess access = {kTaggedBase,
480 SharedFunctionInfo::kFeedbackVectorOffset,
481 Handle<Name>(),
482 Type::Any(),
483 MachineType::AnyTagged(),
484 kPointerWriteBarrier};
485 return access;
486 }
487
488
489 // static 475 // static
490 ElementAccess AccessBuilder::ForFixedArrayElement() { 476 ElementAccess AccessBuilder::ForFixedArrayElement() {
491 ElementAccess access = {kTaggedBase, FixedArray::kHeaderSize, Type::Tagged(), 477 ElementAccess access = {kTaggedBase, FixedArray::kHeaderSize, Type::Tagged(),
492 MachineType::AnyTagged(), kFullWriteBarrier}; 478 MachineType::AnyTagged(), kFullWriteBarrier};
493 return access; 479 return access;
494 } 480 }
495 481
496 482
497 // static 483 // static
498 ElementAccess AccessBuilder::ForFixedDoubleArrayElement() { 484 ElementAccess AccessBuilder::ForFixedDoubleArrayElement() {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 } 539 }
554 UNREACHABLE(); 540 UNREACHABLE();
555 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(), 541 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(),
556 kNoWriteBarrier}; 542 kNoWriteBarrier};
557 return access; 543 return access;
558 } 544 }
559 545
560 } // namespace compiler 546 } // namespace compiler
561 } // namespace internal 547 } // namespace internal
562 } // namespace v8 548 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/access-builder.h ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698