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

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

Issue 113525: Inline some simple member functions of VirtualFrame. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 7 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 | « no previous file | src/arm/virtual-frame-arm.h » ('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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 VirtualFrame::SpilledScope spilled_scope(this); 142 VirtualFrame::SpilledScope spilled_scope(this);
143 if (scope_->num_heap_slots() > 0) { 143 if (scope_->num_heap_slots() > 0) {
144 // Allocate local context. 144 // Allocate local context.
145 // Get outer context and create a new context based on it. 145 // Get outer context and create a new context based on it.
146 __ ldr(r0, frame_->Function()); 146 __ ldr(r0, frame_->Function());
147 frame_->EmitPush(r0); 147 frame_->EmitPush(r0);
148 frame_->CallRuntime(Runtime::kNewContext, 1); // r0 holds the result 148 frame_->CallRuntime(Runtime::kNewContext, 1); // r0 holds the result
149 149
150 #ifdef DEBUG 150 #ifdef DEBUG
151 JumpTarget verified_true(this); 151 JumpTarget verified_true;
152 __ cmp(r0, Operand(cp)); 152 __ cmp(r0, Operand(cp));
153 verified_true.Branch(eq); 153 verified_true.Branch(eq);
154 __ stop("NewContext: r0 is expected to be the same as cp"); 154 __ stop("NewContext: r0 is expected to be the same as cp");
155 verified_true.Bind(); 155 verified_true.Bind();
156 #endif 156 #endif
157 // Update context local. 157 // Update context local.
158 __ str(cp, frame_->Context()); 158 __ str(cp, frame_->Context());
159 } 159 }
160 160
161 // TODO(1241774): Improve this code: 161 // TODO(1241774): Improve this code:
(...skipping 5018 matching lines...) Expand 10 before | Expand all | Expand 10 after
5180 __ mov(r2, Operand(0)); 5180 __ mov(r2, Operand(0));
5181 __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION); 5181 __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION);
5182 __ Jump(Handle<Code>(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline)), 5182 __ Jump(Handle<Code>(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline)),
5183 RelocInfo::CODE_TARGET); 5183 RelocInfo::CODE_TARGET);
5184 } 5184 }
5185 5185
5186 5186
5187 #undef __ 5187 #undef __
5188 5188
5189 } } // namespace v8::internal 5189 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm/virtual-frame-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698