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

Side by Side Diff: src/codegen.cc

Issue 2883042: Breakpoint position should be inside function body. (Closed)
Patch Set: Created 10 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
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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 return false; 426 return false;
427 } 427 }
428 428
429 429
430 void CodeGenerator::CodeForFunctionPosition(FunctionLiteral* fun) { 430 void CodeGenerator::CodeForFunctionPosition(FunctionLiteral* fun) {
431 if (FLAG_debug_info) RecordPositions(masm(), fun->start_position(), false); 431 if (FLAG_debug_info) RecordPositions(masm(), fun->start_position(), false);
432 } 432 }
433 433
434 434
435 void CodeGenerator::CodeForReturnPosition(FunctionLiteral* fun) { 435 void CodeGenerator::CodeForReturnPosition(FunctionLiteral* fun) {
436 if (FLAG_debug_info) RecordPositions(masm(), fun->end_position(), false); 436 if (FLAG_debug_info) RecordPositions(masm(), fun->end_position() - 1, false);
437 } 437 }
438 438
439 439
440 void CodeGenerator::CodeForStatementPosition(Statement* stmt) { 440 void CodeGenerator::CodeForStatementPosition(Statement* stmt) {
441 if (FLAG_debug_info) RecordPositions(masm(), stmt->statement_pos(), false); 441 if (FLAG_debug_info) RecordPositions(masm(), stmt->statement_pos(), false);
442 } 442 }
443 443
444 444
445 void CodeGenerator::CodeForDoWhileConditionPosition(DoWhileStatement* stmt) { 445 void CodeGenerator::CodeForDoWhileConditionPosition(DoWhileStatement* stmt) {
446 if (FLAG_debug_info) 446 if (FLAG_debug_info)
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 } 507 }
508 } 508 }
509 509
510 510
511 void ApiGetterEntryStub::SetCustomCache(Code* value) { 511 void ApiGetterEntryStub::SetCustomCache(Code* value) {
512 info()->set_load_stub_cache(value); 512 info()->set_load_stub_cache(value);
513 } 513 }
514 514
515 515
516 } } // namespace v8::internal 516 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/debug.cc » ('j') | src/full-codegen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698