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

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

Issue 366004: Add support for debugger statement to top-level compiler. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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/compiler.cc ('k') | no next file » | 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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 UNREACHABLE(); 394 UNREACHABLE();
395 } 395 }
396 396
397 397
398 void FastCodeGenerator::VisitTryFinallyStatement(TryFinallyStatement* stmt) { 398 void FastCodeGenerator::VisitTryFinallyStatement(TryFinallyStatement* stmt) {
399 UNREACHABLE(); 399 UNREACHABLE();
400 } 400 }
401 401
402 402
403 void FastCodeGenerator::VisitDebuggerStatement(DebuggerStatement* stmt) { 403 void FastCodeGenerator::VisitDebuggerStatement(DebuggerStatement* stmt) {
404 UNREACHABLE(); 404 #ifdef ENABLE_DEBUGGER_SUPPORT
405 Comment cmnt(masm_, "[ DebuggerStatement");
406 SetStatementPosition(stmt);
407 __ CallRuntime(Runtime::kDebugBreak, 0);
408 // Ignore the return value.
409 #endif
405 } 410 }
406 411
407 412
408 void FastCodeGenerator::VisitFunctionBoilerplateLiteral( 413 void FastCodeGenerator::VisitFunctionBoilerplateLiteral(
409 FunctionBoilerplateLiteral* expr) { 414 FunctionBoilerplateLiteral* expr) {
410 UNREACHABLE(); 415 UNREACHABLE();
411 } 416 }
412 417
413 418
414 void FastCodeGenerator::VisitConditional(Conditional* expr) { 419 void FastCodeGenerator::VisitConditional(Conditional* expr) {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 515
511 void FastCodeGenerator::VisitThisFunction(ThisFunction* expr) { 516 void FastCodeGenerator::VisitThisFunction(ThisFunction* expr) {
512 UNREACHABLE(); 517 UNREACHABLE();
513 } 518 }
514 519
515 520
516 #undef __ 521 #undef __
517 522
518 523
519 } } // namespace v8::internal 524 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698