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

Side by Side Diff: src/runtime.cc

Issue 22893050: Get rid of duplicated CPU::DebugBreak() method. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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
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 12954 matching lines...) Expand 10 before | Expand all | Expand 10 after
12965 RUNTIME_ASSERT(compilation_state == Script::COMPILATION_STATE_INITIAL); 12965 RUNTIME_ASSERT(compilation_state == Script::COMPILATION_STATE_INITIAL);
12966 script->set_source(*source); 12966 script->set_source(*source);
12967 12967
12968 return isolate->heap()->undefined_value(); 12968 return isolate->heap()->undefined_value();
12969 } 12969 }
12970 12970
12971 12971
12972 RUNTIME_FUNCTION(MaybeObject*, Runtime_SystemBreak) { 12972 RUNTIME_FUNCTION(MaybeObject*, Runtime_SystemBreak) {
12973 SealHandleScope shs(isolate); 12973 SealHandleScope shs(isolate);
12974 ASSERT(args.length() == 0); 12974 ASSERT(args.length() == 0);
12975 CPU::DebugBreak(); 12975 OS::DebugBreak();
12976 return isolate->heap()->undefined_value(); 12976 return isolate->heap()->undefined_value();
12977 } 12977 }
12978 12978
12979 12979
12980 RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugDisassembleFunction) { 12980 RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugDisassembleFunction) {
12981 HandleScope scope(isolate); 12981 HandleScope scope(isolate);
12982 #ifdef DEBUG 12982 #ifdef DEBUG
12983 ASSERT(args.length() == 1); 12983 ASSERT(args.length() == 1);
12984 // Get the function and make sure it is compiled. 12984 // Get the function and make sure it is compiled.
12985 CONVERT_ARG_HANDLE_CHECKED(JSFunction, func, 0); 12985 CONVERT_ARG_HANDLE_CHECKED(JSFunction, func, 0);
(...skipping 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after
14636 // Handle last resort GC and make sure to allow future allocations 14636 // Handle last resort GC and make sure to allow future allocations
14637 // to grow the heap without causing GCs (if possible). 14637 // to grow the heap without causing GCs (if possible).
14638 isolate->counters()->gc_last_resort_from_js()->Increment(); 14638 isolate->counters()->gc_last_resort_from_js()->Increment();
14639 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, 14639 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags,
14640 "Runtime::PerformGC"); 14640 "Runtime::PerformGC");
14641 } 14641 }
14642 } 14642 }
14643 14643
14644 14644
14645 } } // namespace v8::internal 14645 } } // namespace v8::internal
OLDNEW
« src/ia32/cpu-ia32.cc ('K') | « src/mips/cpu-mips.cc ('k') | src/x64/cpu-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698