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

Side by Side Diff: src/codegen.cc

Issue 669240: - Remove function boilerplate objects and use SharedFunctionInfos in... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Committed 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/codegen.h ('k') | src/compilation-cache.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 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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 } else { 329 } else {
330 array->set(j++, *(var->name())); 330 array->set(j++, *(var->name()));
331 if (node->fun() == NULL) { 331 if (node->fun() == NULL) {
332 if (var->mode() == Variable::CONST) { 332 if (var->mode() == Variable::CONST) {
333 // In case this is const property use the hole. 333 // In case this is const property use the hole.
334 array->set_the_hole(j++); 334 array->set_the_hole(j++);
335 } else { 335 } else {
336 array->set_undefined(j++); 336 array->set_undefined(j++);
337 } 337 }
338 } else { 338 } else {
339 Handle<JSFunction> function = 339 Handle<SharedFunctionInfo> function =
340 Compiler::BuildBoilerplate(node->fun(), script(), this); 340 Compiler::BuildFunctionInfo(node->fun(), script(), this);
341 // Check for stack-overflow exception. 341 // Check for stack-overflow exception.
342 if (HasStackOverflow()) return; 342 if (HasStackOverflow()) return;
343 array->set(j++, *function); 343 array->set(j++, *function);
344 } 344 }
345 } 345 }
346 } 346 }
347 347
348 // Invoke the platform-dependent code generator to do the actual 348 // Invoke the platform-dependent code generator to do the actual
349 // declaration the global variables and functions. 349 // declaration the global variables and functions.
350 DeclareGlobals(array); 350 DeclareGlobals(array);
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 } 514 }
515 } 515 }
516 516
517 517
518 void ApiGetterEntryStub::SetCustomCache(Code* value) { 518 void ApiGetterEntryStub::SetCustomCache(Code* value) {
519 info()->set_load_stub_cache(value); 519 info()->set_load_stub_cache(value);
520 } 520 }
521 521
522 522
523 } } // namespace v8::internal 523 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/codegen.h ('k') | src/compilation-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698