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

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

Issue 6461022: Merge a number of assertion failure fixes to the 3.0 branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.0/
Patch Set: '' Created 9 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 | Annotate | Revision Log
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 895 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 AstVisitor::Visit(expr); 906 AstVisitor::Visit(expr);
907 forward_bailout_stack_ = saved; 907 forward_bailout_stack_ = saved;
908 } 908 }
909 909
910 910
911 void FullCodeGenerator::VisitBlock(Block* stmt) { 911 void FullCodeGenerator::VisitBlock(Block* stmt) {
912 Comment cmnt(masm_, "[ Block"); 912 Comment cmnt(masm_, "[ Block");
913 Breakable nested_statement(this, stmt); 913 Breakable nested_statement(this, stmt);
914 SetStatementPosition(stmt); 914 SetStatementPosition(stmt);
915 915
916 PrepareForBailoutForId(stmt->EntryId(), TOS_REG); 916 PrepareForBailoutForId(stmt->EntryId(), NO_REGISTERS);
917 VisitStatements(stmt->statements()); 917 VisitStatements(stmt->statements());
918 __ bind(nested_statement.break_target()); 918 __ bind(nested_statement.break_target());
919 PrepareForBailoutForId(stmt->ExitId(), NO_REGISTERS); 919 PrepareForBailoutForId(stmt->ExitId(), NO_REGISTERS);
920 } 920 }
921 921
922 922
923 void FullCodeGenerator::VisitExpressionStatement(ExpressionStatement* stmt) { 923 void FullCodeGenerator::VisitExpressionStatement(ExpressionStatement* stmt) {
924 Comment cmnt(masm_, "[ ExpressionStatement"); 924 Comment cmnt(masm_, "[ ExpressionStatement");
925 SetStatementPosition(stmt); 925 SetStatementPosition(stmt);
926 VisitForEffect(stmt->expression()); 926 VisitForEffect(stmt->expression());
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
1385 __ Drop(stack_depth); 1385 __ Drop(stack_depth);
1386 __ PopTryHandler(); 1386 __ PopTryHandler();
1387 return 0; 1387 return 0;
1388 } 1388 }
1389 1389
1390 1390
1391 #undef __ 1391 #undef __
1392 1392
1393 1393
1394 } } // namespace v8::internal 1394 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/handles.cc » ('j') | src/ia32/macro-assembler-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698