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

Side by Side Diff: src/code-stubs.cc

Issue 9212006: [objects] NotSeededNumberDictionary Base URL: gh:v8/v8@master
Patch Set: Created 8 years, 11 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/factory.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 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 GetICState()); 125 GetICState());
126 Handle<Code> new_object = factory->NewCode( 126 Handle<Code> new_object = factory->NewCode(
127 desc, flags, masm.CodeObject(), NeedsImmovableCode()); 127 desc, flags, masm.CodeObject(), NeedsImmovableCode());
128 RecordCodeGeneration(*new_object, &masm); 128 RecordCodeGeneration(*new_object, &masm);
129 FinishCode(new_object); 129 FinishCode(new_object);
130 130
131 if (UseSpecialCache()) { 131 if (UseSpecialCache()) {
132 AddToSpecialCache(new_object); 132 AddToSpecialCache(new_object);
133 } else { 133 } else {
134 // Update the dictionary and the root in Heap. 134 // Update the dictionary and the root in Heap.
135 Handle<NumberDictionary> dict = 135 Handle<NotSeededNumberDictionary> dict =
136 factory->DictionaryAtNumberPut( 136 factory->NotSeededDictionaryAtNumberPut(
137 Handle<NumberDictionary>(heap->code_stubs()), 137 Handle<NotSeededNumberDictionary>(heap->code_stubs()),
138 GetKey(), 138 GetKey(),
139 new_object); 139 new_object);
140 heap->public_set_code_stubs(*dict); 140 heap->public_set_code_stubs(*dict);
141 } 141 }
142 code = *new_object; 142 code = *new_object;
143 } 143 }
144 144
145 Activate(code); 145 Activate(code);
146 ASSERT(!NeedsImmovableCode() || heap->lo_space()->Contains(code)); 146 ASSERT(!NeedsImmovableCode() || heap->lo_space()->Contains(code));
147 return Handle<Code>(code, isolate); 147 return Handle<Code>(code, isolate);
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 KeyedStoreStubCompiler::GenerateStoreFastDoubleElement(masm, is_jsarray_); 440 KeyedStoreStubCompiler::GenerateStoreFastDoubleElement(masm, is_jsarray_);
441 } else { 441 } else {
442 UNREACHABLE(); 442 UNREACHABLE();
443 } 443 }
444 } 444 }
445 masm->bind(&fail); 445 masm->bind(&fail);
446 KeyedStoreIC::GenerateRuntimeSetProperty(masm, strict_mode_); 446 KeyedStoreIC::GenerateRuntimeSetProperty(masm, strict_mode_);
447 } 447 }
448 448
449 } } // namespace v8::internal 449 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698