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

Side by Side Diff: src/objects-inl.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 | « src/objects-debug.cc ('k') | src/parser.h » ('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 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 5210 matching lines...) Expand 10 before | Expand all | Expand 10 after
5221 5221
5222 5222
5223 void SharedFunctionInfo::ReplaceCode(Code* value) { 5223 void SharedFunctionInfo::ReplaceCode(Code* value) {
5224 // If the GC metadata field is already used then the function was 5224 // If the GC metadata field is already used then the function was
5225 // enqueued as a code flushing candidate and we remove it now. 5225 // enqueued as a code flushing candidate and we remove it now.
5226 if (code()->gc_metadata() != NULL) { 5226 if (code()->gc_metadata() != NULL) {
5227 CodeFlusher* flusher = GetHeap()->mark_compact_collector()->code_flusher(); 5227 CodeFlusher* flusher = GetHeap()->mark_compact_collector()->code_flusher();
5228 flusher->EvictCandidate(this); 5228 flusher->EvictCandidate(this);
5229 } 5229 }
5230 5230
5231 #ifdef DEBUG
5231 DCHECK(code()->gc_metadata() == NULL && value->gc_metadata() == NULL); 5232 DCHECK(code()->gc_metadata() == NULL && value->gc_metadata() == NULL);
5233 Code::VerifyRecompiledCode(code(), value);
5234 #endif // DEBUG
5232 5235
5233 set_code(value); 5236 set_code(value);
5234 5237
5235 if (is_compiled()) set_never_compiled(false); 5238 if (is_compiled()) set_never_compiled(false);
5236 } 5239 }
5237 5240
5238 5241
5239 ScopeInfo* SharedFunctionInfo::scope_info() const { 5242 ScopeInfo* SharedFunctionInfo::scope_info() const {
5240 return reinterpret_cast<ScopeInfo*>(READ_FIELD(this, kScopeInfoOffset)); 5243 return reinterpret_cast<ScopeInfo*>(READ_FIELD(this, kScopeInfoOffset));
5241 } 5244 }
(...skipping 1851 matching lines...) Expand 10 before | Expand all | Expand 10 after
7093 #undef READ_SHORT_FIELD 7096 #undef READ_SHORT_FIELD
7094 #undef WRITE_SHORT_FIELD 7097 #undef WRITE_SHORT_FIELD
7095 #undef READ_BYTE_FIELD 7098 #undef READ_BYTE_FIELD
7096 #undef WRITE_BYTE_FIELD 7099 #undef WRITE_BYTE_FIELD
7097 #undef NOBARRIER_READ_BYTE_FIELD 7100 #undef NOBARRIER_READ_BYTE_FIELD
7098 #undef NOBARRIER_WRITE_BYTE_FIELD 7101 #undef NOBARRIER_WRITE_BYTE_FIELD
7099 7102
7100 } } // namespace v8::internal 7103 } } // namespace v8::internal
7101 7104
7102 #endif // V8_OBJECTS_INL_H_ 7105 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects-debug.cc ('k') | src/parser.h » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698