Index: src/code-stubs.h |
diff --git a/src/code-stubs.h b/src/code-stubs.h |
index 83b0f49140e07de902782721d0a30be6cf337789..56aa27b6ff8b2040b2f7eb38288f341d221f825c 100644 |
--- a/src/code-stubs.h |
+++ b/src/code-stubs.h |
@@ -175,7 +175,7 @@ class CodeStub BASE_EMBEDDED { |
void RecordCodeGeneration(Code* code, MacroAssembler* masm); |
// Finish the code object after it has been generated. |
- virtual void FinishCode(Handle<Code> code) { } |
+ virtual void FinishCode(Code* code) { } |
// Activate newly generated stub. Is called after |
// registering stub in the stub cache. |
@@ -441,9 +441,7 @@ class ICCompareStub: public CodeStub { |
class OpField: public BitField<int, 0, 3> { }; |
class StateField: public BitField<int, 3, 5> { }; |
- virtual void FinishCode(Handle<Code> code) { |
- code->set_compare_state(state_); |
- } |
+ virtual void FinishCode(Code* code) { code->set_compare_state(state_); } |
virtual CodeStub::Major MajorKey() { return CompareIC; } |
virtual int MinorKey(); |
@@ -546,7 +544,7 @@ class CompareStub: public CodeStub { |
int MinorKey(); |
virtual int GetCodeKind() { return Code::COMPARE_IC; } |
- virtual void FinishCode(Handle<Code> code) { |
+ virtual void FinishCode(Code* code) { |
code->set_compare_state(CompareIC::GENERIC); |
} |
@@ -611,10 +609,6 @@ class JSEntryStub : public CodeStub { |
private: |
Major MajorKey() { return JSEntry; } |
int MinorKey() { return 0; } |
- |
- virtual void FinishCode(Handle<Code> code); |
- |
- int handler_offset_; |
}; |
@@ -691,7 +685,7 @@ class CallFunctionStub: public CodeStub { |
void Generate(MacroAssembler* masm); |
- virtual void FinishCode(Handle<Code> code); |
+ virtual void FinishCode(Code* code); |
static void Clear(Heap* heap, Address address); |
@@ -1002,7 +996,7 @@ class ToBooleanStub: public CodeStub { |
Major MajorKey() { return ToBoolean; } |
int MinorKey() { return (tos_.code() << NUMBER_OF_TYPES) | types_.ToByte(); } |
- virtual void FinishCode(Handle<Code> code) { |
+ virtual void FinishCode(Code* code) { |
code->set_to_boolean_state(types_.ToByte()); |
} |