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

Side by Side Diff: src/objects.h

Issue 7033020: When inlining fails, disable optimization of the proper function. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 7 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/hydrogen.cc ('k') | src/objects.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 4350 matching lines...) Expand 10 before | Expand all | Expand 10 after
4361 inline bool es5_native(); 4361 inline bool es5_native();
4362 inline void set_es5_native(bool value); 4362 inline void set_es5_native(bool value);
4363 4363
4364 // Indicates whether or not the code in the shared function support 4364 // Indicates whether or not the code in the shared function support
4365 // deoptimization. 4365 // deoptimization.
4366 inline bool has_deoptimization_support(); 4366 inline bool has_deoptimization_support();
4367 4367
4368 // Enable deoptimization support through recompiled code. 4368 // Enable deoptimization support through recompiled code.
4369 void EnableDeoptimizationSupport(Code* recompiled); 4369 void EnableDeoptimizationSupport(Code* recompiled);
4370 4370
4371 // Disable (further) attempted optimization of all functions sharing this
4372 // shared function info. The function is the one we actually tried to
4373 // optimize.
4374 void DisableOptimization(JSFunction* function);
4375
4371 // Lookup the bailout ID and ASSERT that it exists in the non-optimized 4376 // Lookup the bailout ID and ASSERT that it exists in the non-optimized
4372 // code, returns whether it asserted (i.e., always true if assertions are 4377 // code, returns whether it asserted (i.e., always true if assertions are
4373 // disabled). 4378 // disabled).
4374 bool VerifyBailoutId(int id); 4379 bool VerifyBailoutId(int id);
4375 4380
4376 // Check whether a inlined constructor can be generated with the given 4381 // Check whether a inlined constructor can be generated with the given
4377 // prototype. 4382 // prototype.
4378 bool CanGenerateInlineConstructor(Object* prototype); 4383 bool CanGenerateInlineConstructor(Object* prototype);
4379 4384
4380 // Prevents further attempts to generate inline constructors. 4385 // Prevents further attempts to generate inline constructors.
(...skipping 2395 matching lines...) Expand 10 before | Expand all | Expand 10 after
6776 } else { 6781 } else {
6777 value &= ~(1 << bit_position); 6782 value &= ~(1 << bit_position);
6778 } 6783 }
6779 return value; 6784 return value;
6780 } 6785 }
6781 }; 6786 };
6782 6787
6783 } } // namespace v8::internal 6788 } } // namespace v8::internal
6784 6789
6785 #endif // V8_OBJECTS_H_ 6790 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698