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

Side by Side Diff: src/runtime.cc

Issue 9837004: Port count-based profiler to ARM (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 8 years, 9 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 | « src/isolate-inl.h ('k') | src/runtime-profiler.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 8357 matching lines...) Expand 10 before | Expand all | Expand 10 after
8368 } 8368 }
8369 } 8369 }
8370 8370
8371 // Revert to the original stack checks in the original unoptimized code. 8371 // Revert to the original stack checks in the original unoptimized code.
8372 if (FLAG_trace_osr) { 8372 if (FLAG_trace_osr) {
8373 PrintF("[restoring original stack checks in "); 8373 PrintF("[restoring original stack checks in ");
8374 function->PrintName(); 8374 function->PrintName();
8375 PrintF("]\n"); 8375 PrintF("]\n");
8376 } 8376 }
8377 Handle<Code> check_code; 8377 Handle<Code> check_code;
8378 #ifdef V8_TARGET_ARCH_IA32 8378 #if defined(V8_TARGET_ARCH_IA32) || defined(V8_TARGET_ARCH_ARM)
8379 if (FLAG_count_based_interrupts) { 8379 if (FLAG_count_based_interrupts) {
8380 InterruptStub interrupt_stub; 8380 InterruptStub interrupt_stub;
8381 check_code = interrupt_stub.GetCode(); 8381 check_code = interrupt_stub.GetCode();
8382 } else // NOLINT 8382 } else // NOLINT
8383 #endif 8383 #endif
8384 { // NOLINT 8384 { // NOLINT
8385 StackCheckStub check_stub; 8385 StackCheckStub check_stub;
8386 check_code = check_stub.GetCode(); 8386 check_code = check_stub.GetCode();
8387 } 8387 }
8388 Handle<Code> replacement_code = isolate->builtins()->OnStackReplacement(); 8388 Handle<Code> replacement_code = isolate->builtins()->OnStackReplacement();
(...skipping 4973 matching lines...) Expand 10 before | Expand all | Expand 10 after
13362 // Handle last resort GC and make sure to allow future allocations 13362 // Handle last resort GC and make sure to allow future allocations
13363 // to grow the heap without causing GCs (if possible). 13363 // to grow the heap without causing GCs (if possible).
13364 isolate->counters()->gc_last_resort_from_js()->Increment(); 13364 isolate->counters()->gc_last_resort_from_js()->Increment();
13365 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, 13365 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags,
13366 "Runtime::PerformGC"); 13366 "Runtime::PerformGC");
13367 } 13367 }
13368 } 13368 }
13369 13369
13370 13370
13371 } } // namespace v8::internal 13371 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate-inl.h ('k') | src/runtime-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698