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

Side by Side Diff: src/codegen.cc

Issue 302002: Adding declaration of global variables and functions in new compiler.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 2 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/codegen.h ('k') | src/compiler.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 fun->shared()->set_is_expression(lit->is_expression()); 267 fun->shared()->set_is_expression(lit->is_expression());
268 fun->shared()->set_is_toplevel(is_toplevel); 268 fun->shared()->set_is_toplevel(is_toplevel);
269 fun->shared()->set_inferred_name(*lit->inferred_name()); 269 fun->shared()->set_inferred_name(*lit->inferred_name());
270 fun->shared()->SetThisPropertyAssignmentsInfo( 270 fun->shared()->SetThisPropertyAssignmentsInfo(
271 lit->has_only_this_property_assignments(), 271 lit->has_only_this_property_assignments(),
272 lit->has_only_simple_this_property_assignments(), 272 lit->has_only_simple_this_property_assignments(),
273 *lit->this_property_assignments()); 273 *lit->this_property_assignments());
274 } 274 }
275 275
276 276
277 static Handle<Code> ComputeLazyCompile(int argc) { 277 Handle<Code> CodeGenerator::ComputeLazyCompile(int argc) {
278 CALL_HEAP_FUNCTION(StubCache::ComputeLazyCompile(argc), Code); 278 CALL_HEAP_FUNCTION(StubCache::ComputeLazyCompile(argc), Code);
279 } 279 }
280 280
281 281
282 Handle<JSFunction> CodeGenerator::BuildBoilerplate(FunctionLiteral* node) { 282 Handle<JSFunction> CodeGenerator::BuildBoilerplate(FunctionLiteral* node) {
283 #ifdef DEBUG 283 #ifdef DEBUG
284 // We should not try to compile the same function literal more than 284 // We should not try to compile the same function literal more than
285 // once. 285 // once.
286 node->mark_as_compiled(); 286 node->mark_as_compiled();
287 #endif 287 #endif
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { 545 void ArgumentsAccessStub::Generate(MacroAssembler* masm) {
546 switch (type_) { 546 switch (type_) {
547 case READ_LENGTH: GenerateReadLength(masm); break; 547 case READ_LENGTH: GenerateReadLength(masm); break;
548 case READ_ELEMENT: GenerateReadElement(masm); break; 548 case READ_ELEMENT: GenerateReadElement(masm); break;
549 case NEW_OBJECT: GenerateNewObject(masm); break; 549 case NEW_OBJECT: GenerateNewObject(masm); break;
550 } 550 }
551 } 551 }
552 552
553 553
554 } } // namespace v8::internal 554 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/codegen.h ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698