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

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

Issue 2147213004: Revert of [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: 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 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after
1379 }; 1379 };
1380 1380
1381 1381
1382 // TODO(verwaest): Translate to hydrogen code stub. 1382 // TODO(verwaest): Translate to hydrogen code stub.
1383 class FunctionPrototypeStub : public PlatformCodeStub { 1383 class FunctionPrototypeStub : public PlatformCodeStub {
1384 public: 1384 public:
1385 explicit FunctionPrototypeStub(Isolate* isolate) 1385 explicit FunctionPrototypeStub(Isolate* isolate)
1386 : PlatformCodeStub(isolate) {} 1386 : PlatformCodeStub(isolate) {}
1387 1387
1388 Code::Kind GetCodeKind() const override { return Code::HANDLER; } 1388 Code::Kind GetCodeKind() const override { return Code::HANDLER; }
1389 ExtraICState GetExtraICState() const override { return Code::LOAD_IC; }
1390 1389
1391 // TODO(mvstanton): only the receiver register is accessed. When this is 1390 // TODO(mvstanton): only the receiver register is accessed. When this is
1392 // translated to a hydrogen code stub, a new CallInterfaceDescriptor 1391 // translated to a hydrogen code stub, a new CallInterfaceDescriptor
1393 // should be created that just uses that register for more efficient code. 1392 // should be created that just uses that register for more efficient code.
1394 CallInterfaceDescriptor GetCallInterfaceDescriptor() const override { 1393 CallInterfaceDescriptor GetCallInterfaceDescriptor() const override {
1395 return LoadWithVectorDescriptor(isolate()); 1394 return LoadWithVectorDescriptor(isolate());
1396 } 1395 }
1397 1396
1398 DEFINE_PLATFORM_CODE_STUB(FunctionPrototype, PlatformCodeStub); 1397 DEFINE_PLATFORM_CODE_STUB(FunctionPrototype, PlatformCodeStub);
1399 }; 1398 };
(...skipping 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after
3110 #undef DEFINE_HYDROGEN_CODE_STUB 3109 #undef DEFINE_HYDROGEN_CODE_STUB
3111 #undef DEFINE_CODE_STUB 3110 #undef DEFINE_CODE_STUB
3112 #undef DEFINE_CODE_STUB_BASE 3111 #undef DEFINE_CODE_STUB_BASE
3113 3112
3114 extern Representation RepresentationFromType(Type* type); 3113 extern Representation RepresentationFromType(Type* type);
3115 3114
3116 } // namespace internal 3115 } // namespace internal
3117 } // namespace v8 3116 } // namespace v8
3118 3117
3119 #endif // V8_CODE_STUBS_H_ 3118 #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