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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 RegisterAllocator* allocator() const { return allocator_; } | 319 RegisterAllocator* allocator() const { return allocator_; } |
320 | 320 |
321 CodeGenState* state() { return state_; } | 321 CodeGenState* state() { return state_; } |
322 void set_state(CodeGenState* state) { state_ = state; } | 322 void set_state(CodeGenState* state) { state_ = state; } |
323 | 323 |
324 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } | 324 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } |
325 | 325 |
326 bool in_spilled_code() const { return in_spilled_code_; } | 326 bool in_spilled_code() const { return in_spilled_code_; } |
327 void set_in_spilled_code(bool flag) { in_spilled_code_ = flag; } | 327 void set_in_spilled_code(bool flag) { in_spilled_code_ = flag; } |
328 | 328 |
| 329 static const uint32_t kTwoToThePowerOf63Exponent = |
| 330 (HeapNumber::kExponentBias + 63) << HeapNumber::kExponentShift; |
| 331 |
329 private: | 332 private: |
330 // Construction/Destruction | 333 // Construction/Destruction |
331 CodeGenerator(int buffer_size, Handle<Script> script, bool is_eval); | 334 CodeGenerator(int buffer_size, Handle<Script> script, bool is_eval); |
332 virtual ~CodeGenerator() { delete masm_; } | 335 virtual ~CodeGenerator() { delete masm_; } |
333 | 336 |
334 // Accessors | 337 // Accessors |
335 Scope* scope() const { return scope_; } | 338 Scope* scope() const { return scope_; } |
336 bool is_eval() { return is_eval_; } | 339 bool is_eval() { return is_eval_; } |
337 | 340 |
338 // Generating deferred code. | 341 // Generating deferred code. |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 bool ascii); | 773 bool ascii); |
771 | 774 |
772 // Should the stub check whether arguments are strings? | 775 // Should the stub check whether arguments are strings? |
773 bool string_check_; | 776 bool string_check_; |
774 }; | 777 }; |
775 | 778 |
776 | 779 |
777 } } // namespace v8::internal | 780 } } // namespace v8::internal |
778 | 781 |
779 #endif // V8_IA32_CODEGEN_IA32_H_ | 782 #endif // V8_IA32_CODEGEN_IA32_H_ |
OLD | NEW |