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 14 matching lines...) Expand all Loading... |
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
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 { |
| 36 namespace internal { |
36 | 37 |
37 // Give alias names to registers | 38 // Give alias names to registers |
38 Register cp = { 8 }; // JavaScript context pointer | 39 Register cp = { 8 }; // JavaScript context pointer |
39 Register pp = { 10 }; // parameter pointer | 40 Register pp = { 10 }; // parameter pointer |
40 | 41 |
41 | 42 |
42 MacroAssembler::MacroAssembler(void* buffer, int size) | 43 MacroAssembler::MacroAssembler(void* buffer, int size) |
43 : Assembler(buffer, size), | 44 : Assembler(buffer, size), |
44 unresolved_(0), | 45 unresolved_(0), |
45 generating_stub_(false), | 46 generating_stub_(false), |
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
949 #endif | 950 #endif |
950 mov(r0, Operand(p0)); | 951 mov(r0, Operand(p0)); |
951 push(r0); | 952 push(r0); |
952 mov(r0, Operand(Smi::FromInt(p1 - p0))); | 953 mov(r0, Operand(Smi::FromInt(p1 - p0))); |
953 push(r0); | 954 push(r0); |
954 CallRuntime(Runtime::kAbort, 2); | 955 CallRuntime(Runtime::kAbort, 2); |
955 // will not return here | 956 // will not return here |
956 } | 957 } |
957 | 958 |
958 } } // namespace v8::internal | 959 } } // namespace v8::internal |
OLD | NEW |