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

Side by Side Diff: src/compiler.h

Issue 22593003: Add flag trap_on_stub_deopt. We want to be able to trap on hydrogen stub bailouts. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments, added mips 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
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/flag-definitions.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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 if (current_code->is_compiled_optimizable()) { 192 if (current_code->is_compiled_optimizable()) {
193 EnableDeoptimizationSupport(); 193 EnableDeoptimizationSupport();
194 } else { 194 } else {
195 mode_ = CompilationInfo::NONOPT; 195 mode_ = CompilationInfo::NONOPT;
196 } 196 }
197 } 197 }
198 bool IsCompilingForDebugging() { 198 bool IsCompilingForDebugging() {
199 return IsCompilingForDebugging::decode(flags_); 199 return IsCompilingForDebugging::decode(flags_);
200 } 200 }
201 201
202 bool ShouldTrapOnDeopt() const {
203 return (FLAG_trap_on_deopt && IsOptimizing()) ||
204 (FLAG_trap_on_stub_deopt && IsStub());
205 }
206
202 bool has_global_object() const { 207 bool has_global_object() const {
203 return !closure().is_null() && 208 return !closure().is_null() &&
204 (closure()->context()->global_object() != NULL); 209 (closure()->context()->global_object() != NULL);
205 } 210 }
206 211
207 GlobalObject* global_object() const { 212 GlobalObject* global_object() const {
208 return has_global_object() ? closure()->context()->global_object() : NULL; 213 return has_global_object() ? closure()->context()->global_object() : NULL;
209 } 214 }
210 215
211 // Accessors for the different compilation modes. 216 // Accessors for the different compilation modes.
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 unsigned info_zone_start_allocation_size_; 641 unsigned info_zone_start_allocation_size_;
637 int64_t start_ticks_; 642 int64_t start_ticks_;
638 643
639 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 644 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
640 }; 645 };
641 646
642 647
643 } } // namespace v8::internal 648 } } // namespace v8::internal
644 649
645 #endif // V8_COMPILER_H_ 650 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698