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

Side by Side Diff: test/cctest/test-debug.cc

Issue 239113009: Reland "Move functions from handles.cc to where they belong." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix Created 6 years, 8 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 | « test/cctest/test-compiler.cc ('k') | test/cctest/test-object-observe.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 7492 matching lines...) Expand 10 before | Expand all | Expand 10 after
7503 7503
7504 int frame_count = result->Int32Value(); 7504 int frame_count = result->Int32Value();
7505 CHECK_EQ(expected_frame_count, frame_count); 7505 CHECK_EQ(expected_frame_count, frame_count);
7506 7506
7507 for (int i = 0; i < frame_count; i++) { 7507 for (int i = 0; i < frame_count; i++) {
7508 // The 5. element in the returned array of GetFrameDetails contains the 7508 // The 5. element in the returned array of GetFrameDetails contains the
7509 // source position of that frame. 7509 // source position of that frame.
7510 OS::SNPrintF(script_vector, "%%GetFrameDetails(%d, %d)[5]", break_id, i); 7510 OS::SNPrintF(script_vector, "%%GetFrameDetails(%d, %d)[5]", break_id, i);
7511 v8::Local<v8::Value> result = CompileRun(script); 7511 v8::Local<v8::Value> result = CompileRun(script);
7512 CHECK_EQ(expected_line_number[i], 7512 CHECK_EQ(expected_line_number[i],
7513 i::GetScriptLineNumber(source_script, result->Int32Value())); 7513 i::Script::GetLineNumber(source_script, result->Int32Value()));
7514 } 7514 }
7515 v8::Debug::SetDebugEventListener2(NULL); 7515 v8::Debug::SetDebugEventListener2(NULL);
7516 v8::V8::TerminateExecution(CcTest::isolate()); 7516 v8::V8::TerminateExecution(CcTest::isolate());
7517 } 7517 }
7518 7518
7519 7519
7520 TEST(DebugBreakInline) { 7520 TEST(DebugBreakInline) {
7521 i::FLAG_allow_natives_syntax = true; 7521 i::FLAG_allow_natives_syntax = true;
7522 DebugLocalContext env; 7522 DebugLocalContext env;
7523 v8::HandleScope scope(env->GetIsolate()); 7523 v8::HandleScope scope(env->GetIsolate());
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
7657 CHECK(result->IsString()); 7657 CHECK(result->IsString());
7658 v8::String::Utf8Value utf8(result); 7658 v8::String::Utf8Value utf8(result);
7659 CHECK_EQ("bar", *utf8); 7659 CHECK_EQ("bar", *utf8);
7660 7660
7661 v8::Debug::SetDebugEventListener2(NULL); 7661 v8::Debug::SetDebugEventListener2(NULL);
7662 CheckDebuggerUnloaded(); 7662 CheckDebuggerUnloaded();
7663 } 7663 }
7664 7664
7665 7665
7666 #endif // ENABLE_DEBUGGER_SUPPORT 7666 #endif // ENABLE_DEBUGGER_SUPPORT
OLDNEW
« no previous file with comments | « test/cctest/test-compiler.cc ('k') | test/cctest/test-object-observe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698