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

Side by Side Diff: src/compiler.cc

Issue 390012: Push bleeding_edge revision 3267 to trunk.... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 11 years, 1 month 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.cc ('k') | src/objects.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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 445
446 // Update the shared function info with the compiled code. 446 // Update the shared function info with the compiled code.
447 shared->set_code(*code); 447 shared->set_code(*code);
448 448
449 // Set the expected number of properties for instances. 449 // Set the expected number of properties for instances.
450 SetExpectedNofPropertiesFromEstimate(shared, lit->expected_property_count()); 450 SetExpectedNofPropertiesFromEstimate(shared, lit->expected_property_count());
451 451
452 // Set the optimication hints after performing lazy compilation, as these are 452 // Set the optimication hints after performing lazy compilation, as these are
453 // not set when the function is set up as a lazily compiled function. 453 // not set when the function is set up as a lazily compiled function.
454 shared->SetThisPropertyAssignmentsInfo( 454 shared->SetThisPropertyAssignmentsInfo(
455 lit->has_only_this_property_assignments(),
456 lit->has_only_simple_this_property_assignments(), 455 lit->has_only_simple_this_property_assignments(),
457 *lit->this_property_assignments()); 456 *lit->this_property_assignments());
458 457
459 // Check the function has compiled code. 458 // Check the function has compiled code.
460 ASSERT(shared->is_compiled()); 459 ASSERT(shared->is_compiled());
461 return true; 460 return true;
462 } 461 }
463 462
464 463
465 CodeGenSelector::CodeGenTag CodeGenSelector::Select(FunctionLiteral* fun) { 464 CodeGenSelector::CodeGenTag CodeGenSelector::Select(FunctionLiteral* fun) {
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 892
894 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { 893 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) {
895 BAILOUT("ThisFunction"); 894 BAILOUT("ThisFunction");
896 } 895 }
897 896
898 #undef BAILOUT 897 #undef BAILOUT
899 #undef CHECK_BAILOUT 898 #undef CHECK_BAILOUT
900 899
901 900
902 } } // namespace v8::internal 901 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/codegen.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698