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

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

Issue 661171: Merge r3962 to trunk (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 10 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/codegen-arm.h ('k') | src/arm/fast-codegen-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 17 matching lines...) Expand all
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 "compiler.h" 32 #include "compiler.h"
33 #include "debug.h" 33 #include "debug.h"
34 #include "parser.h" 34 #include "parser.h"
35 #include "register-allocator-inl.h" 35 #include "register-allocator-inl.h"
36 #include "runtime.h" 36 #include "runtime.h"
37 #include "scopes.h" 37 #include "scopes.h"
38 38 #include "virtual-frame-inl.h"
39 39
40 namespace v8 { 40 namespace v8 {
41 namespace internal { 41 namespace internal {
42 42
43 #define __ ACCESS_MASM(masm_) 43 #define __ ACCESS_MASM(masm_)
44 44
45 static void EmitIdenticalObjectComparison(MacroAssembler* masm, 45 static void EmitIdenticalObjectComparison(MacroAssembler* masm,
46 Label* slow, 46 Label* slow,
47 Condition cc, 47 Condition cc,
48 bool never_nan_nan); 48 bool never_nan_nan);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 masm_(masm), 126 masm_(masm),
127 info_(NULL), 127 info_(NULL),
128 frame_(NULL), 128 frame_(NULL),
129 allocator_(NULL), 129 allocator_(NULL),
130 cc_reg_(al), 130 cc_reg_(al),
131 state_(NULL), 131 state_(NULL),
132 function_return_is_shadowed_(false) { 132 function_return_is_shadowed_(false) {
133 } 133 }
134 134
135 135
136 Scope* CodeGenerator::scope() { return info_->function()->scope(); }
137
138
139 // Calling conventions: 136 // Calling conventions:
140 // fp: caller's frame pointer 137 // fp: caller's frame pointer
141 // sp: stack pointer 138 // sp: stack pointer
142 // r1: called JS function 139 // r1: called JS function
143 // cp: callee's context 140 // cp: callee's context
144 141
145 void CodeGenerator::Generate(CompilationInfo* info) { 142 void CodeGenerator::Generate(CompilationInfo* info) {
146 // Record the position for debugging purposes. 143 // Record the position for debugging purposes.
147 CodeForFunctionPosition(info->function()); 144 CodeForFunctionPosition(info->function());
148 145
(...skipping 7490 matching lines...) Expand 10 before | Expand all | Expand 10 after
7639 7636
7640 // Just jump to runtime to add the two strings. 7637 // Just jump to runtime to add the two strings.
7641 __ bind(&string_add_runtime); 7638 __ bind(&string_add_runtime);
7642 __ TailCallRuntime(ExternalReference(Runtime::kStringAdd), 2, 1); 7639 __ TailCallRuntime(ExternalReference(Runtime::kStringAdd), 2, 1);
7643 } 7640 }
7644 7641
7645 7642
7646 #undef __ 7643 #undef __
7647 7644
7648 } } // namespace v8::internal 7645 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.h ('k') | src/arm/fast-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698