Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(556)

Side by Side Diff: src/sh4/codegen-sh4.cc

Issue 11275184: First draft of the sh4 port Base URL: http://github.com/v8/v8.git@master
Patch Set: Use GYP and fixe some typos Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/sh4/codegen-sh4.h ('k') | src/sh4/constants-sh4.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2011-2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are
4 // met:
5 //
6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided
11 // with the distribution.
12 // * Neither the name of Google Inc. nor the names of its
13 // contributors may be used to endorse or promote products derived
14 // from this software without specific prior written permission.
15 //
16 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
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.
27
28 #include "v8.h"
29
30 #if defined(V8_TARGET_ARCH_SH4)
31
32 #include "codegen.h"
33 #include "macro-assembler.h"
34
35 namespace v8 {
36 namespace internal {
37
38 #define __ ACCESS_MASM(masm)
39
40 UnaryMathFunction CreateTranscendentalFunction(TranscendentalCache::Type type) {
41 switch (type) {
42 case TranscendentalCache::SIN: return &sin;
43 case TranscendentalCache::COS: return &cos;
44 case TranscendentalCache::TAN: return &tan;
45 case TranscendentalCache::LOG: return &log;
46 default: UNIMPLEMENTED();
47 }
48 return NULL;
49 }
50
51
52 UnaryMathFunction CreateSqrtFunction() {
53 return &sqrt;
54 }
55
56 // -------------------------------------------------------------------------
57 // Platform-specific RuntimeCallHelper functions.
58
59 void StubRuntimeCallHelper::BeforeCall(MacroAssembler* masm) const {
60 masm->EnterFrame(StackFrame::INTERNAL);
61 ASSERT(!masm->has_frame());
62 masm->set_has_frame(true);
63 }
64
65
66 void StubRuntimeCallHelper::AfterCall(MacroAssembler* masm) const {
67 masm->LeaveFrame(StackFrame::INTERNAL);
68 ASSERT(masm->has_frame());
69 masm->set_has_frame(false);
70 }
71
72
73 // -------------------------------------------------------------------------
74 // Code generators
75
76 void ElementsTransitionGenerator::GenerateMapChangeElementsTransition(
77 MacroAssembler* masm) {
78 __ UNIMPLEMENTED_BREAK();
79 }
80
81
82 void ElementsTransitionGenerator::GenerateSmiToDouble(
83 MacroAssembler* masm, Label* fail) {
84 __ UNIMPLEMENTED_BREAK();
85 }
86
87
88 void ElementsTransitionGenerator::GenerateDoubleToObject(
89 MacroAssembler* masm, Label* fail) {
90 __ UNIMPLEMENTED_BREAK();
91 }
92
93
94 void StringCharLoadGenerator::Generate(MacroAssembler* masm,
95 Register string,
96 Register index,
97 Register result,
98 Label* call_runtime) {
99 __ UNIMPLEMENTED_BREAK();
100 }
101
102 #undef __
103
104 } } // namespace v8::internal
105
106 #endif // V8_TARGET_ARCH_SH4
OLDNEW
« no previous file with comments | « src/sh4/codegen-sh4.h ('k') | src/sh4/constants-sh4.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698