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

Side by Side Diff: src/hydrogen.cc

Issue 17870002: Add %_DebugBreakInOptimizedCode() pseudo function call (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: blacklisted in fuzz-natives test; cleaned up the blacklist Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/full-codegen.cc ('k') | src/runtime.h » ('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 10927 matching lines...) Expand 10 before | Expand all | Expand 10 after
10938 void HOptimizedGraphBuilder::GenerateGeneratorNext(CallRuntime* call) { 10938 void HOptimizedGraphBuilder::GenerateGeneratorNext(CallRuntime* call) {
10939 return Bailout("inlined runtime function: GeneratorNext"); 10939 return Bailout("inlined runtime function: GeneratorNext");
10940 } 10940 }
10941 10941
10942 10942
10943 void HOptimizedGraphBuilder::GenerateGeneratorThrow(CallRuntime* call) { 10943 void HOptimizedGraphBuilder::GenerateGeneratorThrow(CallRuntime* call) {
10944 return Bailout("inlined runtime function: GeneratorThrow"); 10944 return Bailout("inlined runtime function: GeneratorThrow");
10945 } 10945 }
10946 10946
10947 10947
10948 void HOptimizedGraphBuilder::GenerateDebugBreakInOptimizedCode(
10949 CallRuntime* call) {
10950 AddInstruction(new(zone()) HDebugBreak());
10951 return ast_context()->ReturnValue(graph()->GetConstant0());
10952 }
10953
10954
10948 #undef CHECK_BAILOUT 10955 #undef CHECK_BAILOUT
10949 #undef CHECK_ALIVE 10956 #undef CHECK_ALIVE
10950 10957
10951 10958
10952 HEnvironment::HEnvironment(HEnvironment* outer, 10959 HEnvironment::HEnvironment(HEnvironment* outer,
10953 Scope* scope, 10960 Scope* scope,
10954 Handle<JSFunction> closure, 10961 Handle<JSFunction> closure,
10955 Zone* zone) 10962 Zone* zone)
10956 : closure_(closure), 10963 : closure_(closure),
10957 values_(0, zone), 10964 values_(0, zone),
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
11554 if (ShouldProduceTraceOutput()) { 11561 if (ShouldProduceTraceOutput()) {
11555 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 11562 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
11556 } 11563 }
11557 11564
11558 #ifdef DEBUG 11565 #ifdef DEBUG
11559 graph_->Verify(false); // No full verify. 11566 graph_->Verify(false); // No full verify.
11560 #endif 11567 #endif
11561 } 11568 }
11562 11569
11563 } } // namespace v8::internal 11570 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698