| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 | 173 |
| 174 RegisterAllocator* allocator() const { return allocator_; } | 174 RegisterAllocator* allocator() const { return allocator_; } |
| 175 | 175 |
| 176 CodeGenState* state() { return state_; } | 176 CodeGenState* state() { return state_; } |
| 177 void set_state(CodeGenState* state) { state_ = state; } | 177 void set_state(CodeGenState* state) { state_ = state; } |
| 178 | 178 |
| 179 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } | 179 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } |
| 180 | 180 |
| 181 static const int kUnknownIntValue = -1; | 181 static const int kUnknownIntValue = -1; |
| 182 | 182 |
| 183 // Number of instructions used for the JS return sequence. The constant is |
| 184 // used by the debugger to patch the JS return sequence. |
| 185 static const int kJSReturnSequenceLength = 4; |
| 186 |
| 183 private: | 187 private: |
| 184 // Construction/Destruction | 188 // Construction/Destruction |
| 185 CodeGenerator(int buffer_size, Handle<Script> script, bool is_eval); | 189 CodeGenerator(int buffer_size, Handle<Script> script, bool is_eval); |
| 186 virtual ~CodeGenerator() { delete masm_; } | 190 virtual ~CodeGenerator() { delete masm_; } |
| 187 | 191 |
| 188 // Accessors | 192 // Accessors |
| 189 Scope* scope() const { return scope_; } | 193 Scope* scope() const { return scope_; } |
| 190 | 194 |
| 191 // Generating deferred code. | 195 // Generating deferred code. |
| 192 void ProcessDeferred(); | 196 void ProcessDeferred(); |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 constant_rhs_); | 497 constant_rhs_); |
| 494 } | 498 } |
| 495 } | 499 } |
| 496 #endif | 500 #endif |
| 497 }; | 501 }; |
| 498 | 502 |
| 499 | 503 |
| 500 } } // namespace v8::internal | 504 } } // namespace v8::internal |
| 501 | 505 |
| 502 #endif // V8_ARM_CODEGEN_ARM_H_ | 506 #endif // V8_ARM_CODEGEN_ARM_H_ |
| OLD | NEW |