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

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

Issue 1642613002: Reland of Type Feedback Vector lives in the closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: %SetCode failed to install literals in cache. Created 4 years, 10 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/heap/heap.h" 9 #include "src/heap/heap.h"
10 #include "src/type-cache.h" 10 #include "src/type-cache.h"
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 314
315 // static 315 // static
316 FieldAccess AccessBuilder::ForPropertyCellValue(Type* type) { 316 FieldAccess AccessBuilder::ForPropertyCellValue(Type* type) {
317 FieldAccess access = {kTaggedBase, PropertyCell::kValueOffset, Handle<Name>(), 317 FieldAccess access = {kTaggedBase, PropertyCell::kValueOffset, Handle<Name>(),
318 type, MachineType::AnyTagged()}; 318 type, MachineType::AnyTagged()};
319 return access; 319 return access;
320 } 320 }
321 321
322 322
323 // static 323 // static
324 FieldAccess AccessBuilder::ForSharedFunctionInfoTypeFeedbackVector() { 324 FieldAccess AccessBuilder::ForJSFunctionLiterals() {
325 FieldAccess access = {kTaggedBase, SharedFunctionInfo::kFeedbackVectorOffset, 325 FieldAccess access = {kTaggedBase, JSFunction::kLiteralsOffset,
326 Handle<Name>(), Type::Any(), MachineType::AnyTagged()}; 326 Handle<Name>(), Type::Any(), MachineType::AnyTagged()};
327 return access; 327 return access;
328 } 328 }
329
330 // static
331 FieldAccess AccessBuilder::ForLiteralsTypeFeedbackVector() {
332 FieldAccess access = {kTaggedBase, LiteralsArray::kFeedbackVectorOffset,
333 Handle<Name>(), Type::Any(), MachineType::AnyTagged()};
334 return access;
335 }
329 336
330 337
331 // static 338 // static
332 ElementAccess AccessBuilder::ForFixedArrayElement() { 339 ElementAccess AccessBuilder::ForFixedArrayElement() {
333 ElementAccess access = {kTaggedBase, FixedArray::kHeaderSize, Type::Tagged(), 340 ElementAccess access = {kTaggedBase, FixedArray::kHeaderSize, Type::Tagged(),
334 MachineType::AnyTagged()}; 341 MachineType::AnyTagged()};
335 return access; 342 return access;
336 } 343 }
337 344
338 345
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 // static 408 // static
402 FieldAccess AccessBuilder::ForStatsCounter() { 409 FieldAccess AccessBuilder::ForStatsCounter() {
403 FieldAccess access = {kUntaggedBase, 0, MaybeHandle<Name>(), 410 FieldAccess access = {kUntaggedBase, 0, MaybeHandle<Name>(),
404 TypeCache::Get().kInt32, MachineType::Int32()}; 411 TypeCache::Get().kInt32, MachineType::Int32()};
405 return access; 412 return access;
406 } 413 }
407 414
408 } // namespace compiler 415 } // namespace compiler
409 } // namespace internal 416 } // namespace internal
410 } // namespace v8 417 } // 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