| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |