OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 |
11 // with the distribution. | 11 // with the distribution. |
12 // * Neither the name of Google Inc. nor the names of its | 12 // * Neither the name of Google Inc. nor the names of its |
13 // contributors may be used to endorse or promote products derived | 13 // contributors may be used to endorse or promote products derived |
14 // from this software without specific prior written permission. | 14 // from this software without specific prior written permission. |
15 // | 15 // |
16 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | 16 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
17 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | 17 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
18 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | 18 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
19 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | 19 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
20 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 20 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
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 #if defined(V8_TARGET_ARCH_MIPS) | 30 #include "codegen.h" |
| 31 #include "deoptimizer.h" |
| 32 #include "full-codegen.h" |
| 33 #include "safepoint-table.h" |
31 | 34 |
32 #include "codegen-inl.h" | 35 // Note: this file was taken from the X64 version. ARM has a partially working |
33 #include "fast-codegen.h" | 36 // lithium implementation, but for now it is not ported to mips. |
34 | 37 |
35 namespace v8 { | 38 namespace v8 { |
36 namespace internal { | 39 namespace internal { |
37 | 40 |
38 #define __ ACCESS_MASM(masm_) | |
39 | 41 |
40 Register FastCodeGenerator::accumulator0() { return no_reg; } | 42 int Deoptimizer::table_entry_size_ = 10; |
41 Register FastCodeGenerator::accumulator1() { return no_reg; } | |
42 Register FastCodeGenerator::scratch0() { return no_reg; } | |
43 Register FastCodeGenerator::scratch1() { return no_reg; } | |
44 Register FastCodeGenerator::receiver_reg() { return no_reg; } | |
45 Register FastCodeGenerator::context_reg() { return no_reg; } | |
46 | 43 |
47 | 44 |
48 void FastCodeGenerator::Generate(CompilationInfo* info) { | 45 int Deoptimizer::patch_size() { |
49 UNIMPLEMENTED_MIPS(); | 46 const int kCallInstructionSizeInWords = 3; |
| 47 return kCallInstructionSizeInWords * Assembler::kInstrSize; |
50 } | 48 } |
51 | 49 |
52 | 50 |
53 void FastCodeGenerator::EmitThisPropertyStore(Handle<String> name) { | 51 void Deoptimizer::DeoptimizeFunction(JSFunction* function) { |
54 UNIMPLEMENTED_MIPS(); | 52 UNIMPLEMENTED(); |
55 } | 53 } |
56 | 54 |
57 | 55 |
58 void FastCodeGenerator::EmitGlobalVariableLoad(Handle<Object> name) { | 56 void Deoptimizer::PatchStackCheckCodeAt(Address pc_after, |
59 UNIMPLEMENTED_MIPS(); | 57 Code* check_code, |
| 58 Code* replacement_code) { |
| 59 UNIMPLEMENTED(); |
60 } | 60 } |
61 | 61 |
62 | 62 |
63 void FastCodeGenerator::EmitThisPropertyLoad(Handle<String> name) { | 63 void Deoptimizer::RevertStackCheckCodeAt(Address pc_after, |
64 UNIMPLEMENTED_MIPS(); | 64 Code* check_code, |
| 65 Code* replacement_code) { |
| 66 UNIMPLEMENTED(); |
65 } | 67 } |
66 | 68 |
67 | 69 |
68 void FastCodeGenerator::EmitBitOr() { | 70 void Deoptimizer::DoComputeOsrOutputFrame() { |
69 UNIMPLEMENTED_MIPS(); | 71 UNIMPLEMENTED(); |
70 } | 72 } |
71 | 73 |
72 #undef __ | 74 |
| 75 void Deoptimizer::DoComputeFrame(TranslationIterator* iterator, |
| 76 int frame_index) { |
| 77 UNIMPLEMENTED(); |
| 78 } |
| 79 |
| 80 |
| 81 void Deoptimizer::EntryGenerator::Generate() { |
| 82 UNIMPLEMENTED(); |
| 83 } |
| 84 |
| 85 |
| 86 void Deoptimizer::TableEntryGenerator::GeneratePrologue() { |
| 87 UNIMPLEMENTED(); |
| 88 } |
73 | 89 |
74 | 90 |
75 } } // namespace v8::internal | 91 } } // namespace v8::internal |
76 | |
77 #endif // V8_TARGET_ARCH_MIPS | |
OLD | NEW |