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

Side by Side Diff: src/objects.h

Issue 1260053004: Create function name const assignment after parsing language mode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: replace 0 by constant Created 5 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
« no previous file with comments | « no previous file | src/objects-debug.cc » ('j') | src/parser.cc » ('J')
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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 4974 matching lines...) Expand 10 before | Expand all | Expand 10 after
4985 void PrintDeoptLocation(FILE* out, Address pc); 4985 void PrintDeoptLocation(FILE* out, Address pc);
4986 bool CanDeoptAt(Address pc); 4986 bool CanDeoptAt(Address pc);
4987 4987
4988 #ifdef VERIFY_HEAP 4988 #ifdef VERIFY_HEAP
4989 void VerifyEmbeddedObjectsDependency(); 4989 void VerifyEmbeddedObjectsDependency();
4990 #endif 4990 #endif
4991 4991
4992 #ifdef DEBUG 4992 #ifdef DEBUG
4993 enum VerifyMode { kNoContextSpecificPointers, kNoContextRetainingPointers }; 4993 enum VerifyMode { kNoContextSpecificPointers, kNoContextRetainingPointers };
4994 void VerifyEmbeddedObjects(VerifyMode mode = kNoContextRetainingPointers); 4994 void VerifyEmbeddedObjects(VerifyMode mode = kNoContextRetainingPointers);
4995 static void VerifyRecompiledCode(Code* old_code, Code* new_code);
4995 #endif // DEBUG 4996 #endif // DEBUG
4996 4997
4997 inline bool CanContainWeakObjects() { 4998 inline bool CanContainWeakObjects() {
4998 // is_turbofanned() implies !can_have_weak_objects(). 4999 // is_turbofanned() implies !can_have_weak_objects().
4999 DCHECK(!is_optimized_code() || !is_turbofanned() || 5000 DCHECK(!is_optimized_code() || !is_turbofanned() ||
5000 !can_have_weak_objects()); 5001 !can_have_weak_objects());
5001 return is_optimized_code() && can_have_weak_objects(); 5002 return is_optimized_code() && can_have_weak_objects();
5002 } 5003 }
5003 5004
5004 inline bool IsWeakObject(Object* object) { 5005 inline bool IsWeakObject(Object* object) {
(...skipping 5536 matching lines...) Expand 10 before | Expand all | Expand 10 after
10541 } else { 10542 } else {
10542 value &= ~(1 << bit_position); 10543 value &= ~(1 << bit_position);
10543 } 10544 }
10544 return value; 10545 return value;
10545 } 10546 }
10546 }; 10547 };
10547 10548
10548 } } // namespace v8::internal 10549 } } // namespace v8::internal
10549 10550
10550 #endif // V8_OBJECTS_H_ 10551 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects-debug.cc » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698