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

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

Issue 1670813005: Revert of Type Feedback Vector lives in the closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/handles-inl.h" 9 #include "src/handles-inl.h"
10 #include "src/heap/heap.h" 10 #include "src/heap/heap.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::ForJSFunctionLiterals() { 324 FieldAccess AccessBuilder::ForSharedFunctionInfoTypeFeedbackVector() {
325 FieldAccess access = {kTaggedBase, JSFunction::kLiteralsOffset, 325 FieldAccess access = {kTaggedBase, SharedFunctionInfo::kFeedbackVectorOffset,
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 }
336 329
337 330
338 // static 331 // static
339 ElementAccess AccessBuilder::ForFixedArrayElement() { 332 ElementAccess AccessBuilder::ForFixedArrayElement() {
340 ElementAccess access = {kTaggedBase, FixedArray::kHeaderSize, Type::Tagged(), 333 ElementAccess access = {kTaggedBase, FixedArray::kHeaderSize, Type::Tagged(),
341 MachineType::AnyTagged()}; 334 MachineType::AnyTagged()};
342 return access; 335 return access;
343 } 336 }
344 337
345 338
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 // static 401 // static
409 FieldAccess AccessBuilder::ForStatsCounter() { 402 FieldAccess AccessBuilder::ForStatsCounter() {
410 FieldAccess access = {kUntaggedBase, 0, MaybeHandle<Name>(), 403 FieldAccess access = {kUntaggedBase, 0, MaybeHandle<Name>(),
411 TypeCache::Get().kInt32, MachineType::Int32()}; 404 TypeCache::Get().kInt32, MachineType::Int32()};
412 return access; 405 return access;
413 } 406 }
414 407
415 } // namespace compiler 408 } // namespace compiler
416 } // namespace internal 409 } // namespace internal
417 } // namespace v8 410 } // 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