| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 #include "v8.h" | 28 #include "v8.h" |
| 29 | 29 |
| 30 #include "bootstrapper.h" | 30 #include "bootstrapper.h" |
| 31 #include "codegen-inl.h" | 31 #include "codegen-inl.h" |
| 32 #include "debug.h" | 32 #include "debug.h" |
| 33 #include "runtime.h" | 33 #include "runtime.h" |
| 34 | 34 |
| 35 namespace v8 { namespace internal { | 35 namespace v8 { namespace internal { |
| 36 | 36 |
| 37 DECLARE_bool(debug_code); | |
| 38 DECLARE_bool(optimize_locals); | |
| 39 | |
| 40 | |
| 41 // Give alias names to registers | 37 // Give alias names to registers |
| 42 Register cp = { 8 }; // JavaScript context pointer | 38 Register cp = { 8 }; // JavaScript context pointer |
| 43 Register pp = { 10 }; // parameter pointer | 39 Register pp = { 10 }; // parameter pointer |
| 44 | 40 |
| 45 | 41 |
| 46 MacroAssembler::MacroAssembler(void* buffer, int size) | 42 MacroAssembler::MacroAssembler(void* buffer, int size) |
| 47 : Assembler(buffer, size), | 43 : Assembler(buffer, size), |
| 48 unresolved_(0), | 44 unresolved_(0), |
| 49 generating_stub_(false), | 45 generating_stub_(false), |
| 50 allow_stub_calls_(true) { | 46 allow_stub_calls_(true) { |
| (...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 743 #endif | 739 #endif |
| 744 mov(r0, Operand(p0)); | 740 mov(r0, Operand(p0)); |
| 745 push(r0); | 741 push(r0); |
| 746 mov(r0, Operand(Smi::FromInt(p1 - p0))); | 742 mov(r0, Operand(Smi::FromInt(p1 - p0))); |
| 747 push(r0); | 743 push(r0); |
| 748 CallRuntime(Runtime::kAbort, 2); | 744 CallRuntime(Runtime::kAbort, 2); |
| 749 // will not return here | 745 // will not return here |
| 750 } | 746 } |
| 751 | 747 |
| 752 } } // namespace v8::internal | 748 } } // namespace v8::internal |
| OLD | NEW |