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

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

Issue 17870002: Add %_DebugBreakInOptimizedCode() pseudo function call (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: blacklisted in fuzz-natives test; cleaned up the blacklist Created 7 years, 5 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 | « no previous file | src/hydrogen.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 922 matching lines...) Expand 10 before | Expand all | Expand 10 after
933 } 933 }
934 934
935 935
936 void FullCodeGenerator::EmitGeneratorThrow(CallRuntime* expr) { 936 void FullCodeGenerator::EmitGeneratorThrow(CallRuntime* expr) {
937 ZoneList<Expression*>* args = expr->arguments(); 937 ZoneList<Expression*>* args = expr->arguments();
938 ASSERT(args->length() == 2); 938 ASSERT(args->length() == 2);
939 EmitGeneratorResume(args->at(0), args->at(1), JSGeneratorObject::THROW); 939 EmitGeneratorResume(args->at(0), args->at(1), JSGeneratorObject::THROW);
940 } 940 }
941 941
942 942
943 void FullCodeGenerator::EmitDebugBreakInOptimizedCode(CallRuntime* expr) {
944 context()->Plug(handle(Smi::FromInt(0), isolate()));
945 }
946
947
943 void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) { 948 void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) {
944 switch (expr->op()) { 949 switch (expr->op()) {
945 case Token::COMMA: 950 case Token::COMMA:
946 return VisitComma(expr); 951 return VisitComma(expr);
947 case Token::OR: 952 case Token::OR:
948 case Token::AND: 953 case Token::AND:
949 return VisitLogicalExpression(expr); 954 return VisitLogicalExpression(expr);
950 default: 955 default:
951 return VisitArithmeticExpression(expr); 956 return VisitArithmeticExpression(expr);
952 } 957 }
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
1608 } 1613 }
1609 1614
1610 return false; 1615 return false;
1611 } 1616 }
1612 1617
1613 1618
1614 #undef __ 1619 #undef __
1615 1620
1616 1621
1617 } } // namespace v8::internal 1622 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698