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 210 matching lines...) Loading... |
221 // Returns whether the code generated for this stub needs to be allocated as | 221 // Returns whether the code generated for this stub needs to be allocated as |
222 // a fixed (non-moveable) code object. | 222 // a fixed (non-moveable) code object. |
223 virtual bool NeedsImmovableCode() { return false; } | 223 virtual bool NeedsImmovableCode() { return false; } |
224 | 224 |
225 virtual void PrintBaseName(StringStream* stream); | 225 virtual void PrintBaseName(StringStream* stream); |
226 virtual void PrintState(StringStream* stream) { } | 226 virtual void PrintState(StringStream* stream) { } |
227 | 227 |
228 private: | 228 private: |
229 // Perform bookkeeping required after code generation when stub code is | 229 // Perform bookkeeping required after code generation when stub code is |
230 // initially generated. | 230 // initially generated. |
231 void RecordCodeGeneration(Code* code, Isolate* isolate); | 231 void RecordCodeGeneration(Handle<Code> code, Isolate* isolate); |
232 | 232 |
233 // Finish the code object after it has been generated. | 233 // Finish the code object after it has been generated. |
234 virtual void FinishCode(Handle<Code> code) { } | 234 virtual void FinishCode(Handle<Code> code) { } |
235 | 235 |
236 // Activate newly generated stub. Is called after | 236 // Activate newly generated stub. Is called after |
237 // registering stub in the stub cache. | 237 // registering stub in the stub cache. |
238 virtual void Activate(Code* code) { } | 238 virtual void Activate(Code* code) { } |
239 | 239 |
240 // BinaryOpStub needs to override this. | 240 // BinaryOpStub needs to override this. |
241 virtual Code::Kind GetCodeKind() const; | 241 virtual Code::Kind GetCodeKind() const; |
(...skipping 2282 matching lines...) Loading... |
2524 | 2524 |
2525 | 2525 |
2526 class CallDescriptors { | 2526 class CallDescriptors { |
2527 public: | 2527 public: |
2528 static void InitializeForIsolate(Isolate* isolate); | 2528 static void InitializeForIsolate(Isolate* isolate); |
2529 }; | 2529 }; |
2530 | 2530 |
2531 } } // namespace v8::internal | 2531 } } // namespace v8::internal |
2532 | 2532 |
2533 #endif // V8_CODE_STUBS_H_ | 2533 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |