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

Side by Side Diff: src/code-stubs.h

Issue 2147433002: [ic] [stubs] Don't use Code::flags in megamorphic stub cache hash computations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@split-stub-cache
Patch Set: Improved stub cache tests and the fixes. 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 | « src/code-stub-assembler.cc ('k') | src/ic/arm/stub-cache-arm.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #ifndef V8_CODE_STUBS_H_ 5 #ifndef V8_CODE_STUBS_H_
6 #define V8_CODE_STUBS_H_ 6 #define V8_CODE_STUBS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/code-stub-assembler.h" 10 #include "src/code-stub-assembler.h"
(...skipping 1359 matching lines...) Expand 10 before | Expand all | Expand 10 after
1370 }; 1370 };
1371 1371
1372 1372
1373 // TODO(verwaest): Translate to hydrogen code stub. 1373 // TODO(verwaest): Translate to hydrogen code stub.
1374 class FunctionPrototypeStub : public PlatformCodeStub { 1374 class FunctionPrototypeStub : public PlatformCodeStub {
1375 public: 1375 public:
1376 explicit FunctionPrototypeStub(Isolate* isolate) 1376 explicit FunctionPrototypeStub(Isolate* isolate)
1377 : PlatformCodeStub(isolate) {} 1377 : PlatformCodeStub(isolate) {}
1378 1378
1379 Code::Kind GetCodeKind() const override { return Code::HANDLER; } 1379 Code::Kind GetCodeKind() const override { return Code::HANDLER; }
1380 ExtraICState GetExtraICState() const override { return Code::LOAD_IC; }
1380 1381
1381 // TODO(mvstanton): only the receiver register is accessed. When this is 1382 // TODO(mvstanton): only the receiver register is accessed. When this is
1382 // translated to a hydrogen code stub, a new CallInterfaceDescriptor 1383 // translated to a hydrogen code stub, a new CallInterfaceDescriptor
1383 // should be created that just uses that register for more efficient code. 1384 // should be created that just uses that register for more efficient code.
1384 CallInterfaceDescriptor GetCallInterfaceDescriptor() const override { 1385 CallInterfaceDescriptor GetCallInterfaceDescriptor() const override {
1385 return LoadWithVectorDescriptor(isolate()); 1386 return LoadWithVectorDescriptor(isolate());
1386 } 1387 }
1387 1388
1388 DEFINE_PLATFORM_CODE_STUB(FunctionPrototype, PlatformCodeStub); 1389 DEFINE_PLATFORM_CODE_STUB(FunctionPrototype, PlatformCodeStub);
1389 }; 1390 };
(...skipping 1707 matching lines...) Expand 10 before | Expand all | Expand 10 after
3097 #undef DEFINE_HYDROGEN_CODE_STUB 3098 #undef DEFINE_HYDROGEN_CODE_STUB
3098 #undef DEFINE_CODE_STUB 3099 #undef DEFINE_CODE_STUB
3099 #undef DEFINE_CODE_STUB_BASE 3100 #undef DEFINE_CODE_STUB_BASE
3100 3101
3101 extern Representation RepresentationFromType(Type* type); 3102 extern Representation RepresentationFromType(Type* type);
3102 3103
3103 } // namespace internal 3104 } // namespace internal
3104 } // namespace v8 3105 } // namespace v8
3105 3106
3106 #endif // V8_CODE_STUBS_H_ 3107 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/code-stub-assembler.cc ('k') | src/ic/arm/stub-cache-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698