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

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

Issue 552232: Introduce a stack-allocated structure to encapsulate compile-time information. (Closed)
Patch Set: Remove inadvertently included files. Created 10 years, 10 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
« no previous file with comments | « src/arm/codegen-arm.h ('k') | src/ast.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 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 function_return_is_shadowed_(false) { 135 function_return_is_shadowed_(false) {
136 } 136 }
137 137
138 138
139 // Calling conventions: 139 // Calling conventions:
140 // fp: caller's frame pointer 140 // fp: caller's frame pointer
141 // sp: stack pointer 141 // sp: stack pointer
142 // r1: called JS function 142 // r1: called JS function
143 // cp: callee's context 143 // cp: callee's context
144 144
145 void CodeGenerator::GenCode(FunctionLiteral* fun) { 145 void CodeGenerator::GenCode(FunctionLiteral* fun, CompilationInfo* info) {
146 // Record the position for debugging purposes. 146 // Record the position for debugging purposes.
147 CodeForFunctionPosition(fun); 147 CodeForFunctionPosition(fun);
148 148
149 ZoneList<Statement*>* body = fun->body(); 149 ZoneList<Statement*>* body = fun->body();
150 150
151 // Initialize state. 151 // Initialize state.
152 ASSERT(scope_ == NULL); 152 ASSERT(scope_ == NULL);
153 scope_ = fun->scope(); 153 scope_ = fun->scope();
154 ASSERT(allocator_ == NULL); 154 ASSERT(allocator_ == NULL);
155 RegisterAllocator register_allocator(this); 155 RegisterAllocator register_allocator(this);
(...skipping 6785 matching lines...) Expand 10 before | Expand all | Expand 10 after
6941 // Call the runtime; it returns -1 (less), 0 (equal), or 1 (greater) 6941 // Call the runtime; it returns -1 (less), 0 (equal), or 1 (greater)
6942 // tagged as a small integer. 6942 // tagged as a small integer.
6943 __ bind(&runtime); 6943 __ bind(&runtime);
6944 __ TailCallRuntime(ExternalReference(Runtime::kStringCompare), 2, 1); 6944 __ TailCallRuntime(ExternalReference(Runtime::kStringCompare), 2, 1);
6945 } 6945 }
6946 6946
6947 6947
6948 #undef __ 6948 #undef __
6949 6949
6950 } } // namespace v8::internal 6950 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.h ('k') | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698