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

Side by Side Diff: test/cctest/test-log-stack-tracer.cc

Issue 6794050: Revert "[Arguments] Merge (7442,7496] from bleeding_edge." (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/arguments
Patch Set: Created 9 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-heap.cc ('k') | test/cctest/test-macro-assembler-x64.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 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 // Compile the script. 273 // Compile the script.
274 CompileRun(trace_call_buf.start()); 274 CompileRun(trace_call_buf.start());
275 } 275 }
276 276
277 277
278 // This test verifies that stack tracing works when called during 278 // This test verifies that stack tracing works when called during
279 // execution of a native function called from JS code. In this case, 279 // execution of a native function called from JS code. In this case,
280 // StackTracer uses Isolate::c_entry_fp as a starting point for stack 280 // StackTracer uses Isolate::c_entry_fp as a starting point for stack
281 // walking. 281 // walking.
282 TEST(CFromJSStackTrace) { 282 TEST(CFromJSStackTrace) {
283 // BUG(1303) Inlining of JSFuncDoTrace() in JSTrace below breaks this test.
284 i::FLAG_use_inlining = false;
285
286 TickSample sample; 283 TickSample sample;
287 InitTraceEnv(&sample); 284 InitTraceEnv(&sample);
288 285
289 InitializeVM(); 286 InitializeVM();
290 v8::HandleScope scope; 287 v8::HandleScope scope;
291 // Create global function JSFuncDoTrace which calls 288 // Create global function JSFuncDoTrace which calls
292 // extension function trace() with the current frame pointer value. 289 // extension function trace() with the current frame pointer value.
293 CreateTraceCallerFunction("JSFuncDoTrace", "trace"); 290 CreateTraceCallerFunction("JSFuncDoTrace", "trace");
294 Local<Value> result = CompileRun( 291 Local<Value> result = CompileRun(
295 "function JSTrace() {" 292 "function JSTrace() {"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 CHECK_EQ(0, GetJsEntrySp()); 406 CHECK_EQ(0, GetJsEntrySp());
410 CompileRun("a = 1; b = a + 1;"); 407 CompileRun("a = 1; b = a + 1;");
411 CHECK_EQ(0, GetJsEntrySp()); 408 CHECK_EQ(0, GetJsEntrySp());
412 CompileRun("js_entry_sp();"); 409 CompileRun("js_entry_sp();");
413 CHECK_EQ(0, GetJsEntrySp()); 410 CHECK_EQ(0, GetJsEntrySp());
414 CompileRun("js_entry_sp_level2();"); 411 CompileRun("js_entry_sp_level2();");
415 CHECK_EQ(0, GetJsEntrySp()); 412 CHECK_EQ(0, GetJsEntrySp());
416 } 413 }
417 414
418 #endif // ENABLE_LOGGING_AND_PROFILING 415 #endif // ENABLE_LOGGING_AND_PROFILING
OLDNEW
« no previous file with comments | « test/cctest/test-heap.cc ('k') | test/cctest/test-macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698