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

Side by Side Diff: src/full-codegen/mips/full-codegen-mips.cc

Issue 2284313003: Separate CompilationInfo into its own file. (Closed)
Patch Set: fix Created 4 years, 3 months 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_MIPS 5 #if V8_TARGET_ARCH_MIPS
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
11 // parameter to a function is defined to be 'a0'. So there are many 11 // parameter to a function is defined to be 'a0'. So there are many
12 // places where we have to move a previous result in v0 to a0 for the 12 // places where we have to move a previous result in v0 to a0 for the
13 // next call: mov(a0, v0). This is not needed on the other architectures. 13 // next call: mov(a0, v0). This is not needed on the other architectures.
14 14
15 #include "src/full-codegen/full-codegen.h"
15 #include "src/ast/scopes.h" 16 #include "src/ast/scopes.h"
16 #include "src/code-factory.h" 17 #include "src/code-factory.h"
17 #include "src/code-stubs.h" 18 #include "src/code-stubs.h"
18 #include "src/codegen.h" 19 #include "src/codegen.h"
20 #include "src/compilation-info.h"
21 #include "src/compiler.h"
19 #include "src/debug/debug.h" 22 #include "src/debug/debug.h"
20 #include "src/full-codegen/full-codegen.h"
21 #include "src/ic/ic.h" 23 #include "src/ic/ic.h"
22 #include "src/parsing/parser.h" 24 #include "src/parsing/parser.h"
23 25
24 #include "src/mips/code-stubs-mips.h" 26 #include "src/mips/code-stubs-mips.h"
25 #include "src/mips/macro-assembler-mips.h" 27 #include "src/mips/macro-assembler-mips.h"
26 28
27 namespace v8 { 29 namespace v8 {
28 namespace internal { 30 namespace internal {
29 31
30 #define __ ACCESS_MASM(masm()) 32 #define __ ACCESS_MASM(masm())
(...skipping 3726 matching lines...) Expand 10 before | Expand all | Expand 10 after
3757 reinterpret_cast<uint32_t>( 3759 reinterpret_cast<uint32_t>(
3758 isolate->builtins()->OnStackReplacement()->entry())); 3760 isolate->builtins()->OnStackReplacement()->entry()));
3759 return ON_STACK_REPLACEMENT; 3761 return ON_STACK_REPLACEMENT;
3760 } 3762 }
3761 3763
3762 3764
3763 } // namespace internal 3765 } // namespace internal
3764 } // namespace v8 3766 } // namespace v8
3765 3767
3766 #endif // V8_TARGET_ARCH_MIPS 3768 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/full-codegen/ia32/full-codegen-ia32.cc ('k') | src/full-codegen/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698