OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 | 267 |
268 virtual int GetCodeKind() { return Code::COMPILED_STUB; } | 268 virtual int GetCodeKind() { return Code::COMPILED_STUB; } |
269 | 269 |
270 CodeStubInterfaceDescriptor* GetInterfaceDescriptor(Isolate* isolate) { | 270 CodeStubInterfaceDescriptor* GetInterfaceDescriptor(Isolate* isolate) { |
271 return isolate->code_stub_interface_descriptor(MajorKey()); | 271 return isolate->code_stub_interface_descriptor(MajorKey()); |
272 } | 272 } |
273 | 273 |
274 virtual void InitializeInterfaceDescriptor( | 274 virtual void InitializeInterfaceDescriptor( |
275 Isolate* isolate, | 275 Isolate* isolate, |
276 CodeStubInterfaceDescriptor* descriptor) = 0; | 276 CodeStubInterfaceDescriptor* descriptor) = 0; |
277 | |
278 protected: | |
279 Handle<Code> CodeFromGraph(HGraph* graph); | |
280 }; | 277 }; |
281 | 278 |
282 | 279 |
283 // Helper interface to prepare to/restore after making runtime calls. | 280 // Helper interface to prepare to/restore after making runtime calls. |
284 class RuntimeCallHelper { | 281 class RuntimeCallHelper { |
285 public: | 282 public: |
286 virtual ~RuntimeCallHelper() {} | 283 virtual ~RuntimeCallHelper() {} |
287 | 284 |
288 virtual void BeforeCall(MacroAssembler* masm) const = 0; | 285 virtual void BeforeCall(MacroAssembler* masm) const = 0; |
289 | 286 |
(...skipping 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1413 | 1410 |
1414 // The current function entry hook. | 1411 // The current function entry hook. |
1415 static FunctionEntryHook entry_hook_; | 1412 static FunctionEntryHook entry_hook_; |
1416 | 1413 |
1417 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); | 1414 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); |
1418 }; | 1415 }; |
1419 | 1416 |
1420 } } // namespace v8::internal | 1417 } } // namespace v8::internal |
1421 | 1418 |
1422 #endif // V8_CODE_STUBS_H_ | 1419 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |