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

Unified Diff: src/code-stubs.h

Issue 8540005: Revert "Add a level of indirection to exception handler addresses." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ast.h ('k') | src/code-stubs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
« no previous file with comments | « src/ast.h ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698