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

Side by Side Diff: src/handles.cc

Issue 45010: Remove all uses of StringShape variables, since that has proven... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 9 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/factory.cc ('k') | src/heap.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 180
181 void TransformToFastProperties(Handle<JSObject> object, 181 void TransformToFastProperties(Handle<JSObject> object,
182 int unused_property_fields) { 182 int unused_property_fields) {
183 CALL_HEAP_FUNCTION_VOID( 183 CALL_HEAP_FUNCTION_VOID(
184 object->TransformToFastProperties(unused_property_fields)); 184 object->TransformToFastProperties(unused_property_fields));
185 } 185 }
186 186
187 187
188 void FlattenString(Handle<String> string) { 188 void FlattenString(Handle<String> string) {
189 CALL_HEAP_FUNCTION_VOID(string->TryFlattenIfNotFlat(StringShape(*string))); 189 CALL_HEAP_FUNCTION_VOID(string->TryFlattenIfNotFlat());
190 ASSERT(string->IsFlat(StringShape(*string))); 190 ASSERT(string->IsFlat());
191 } 191 }
192 192
193 193
194 Handle<Object> SetPrototype(Handle<JSFunction> function, 194 Handle<Object> SetPrototype(Handle<JSFunction> function,
195 Handle<Object> prototype) { 195 Handle<Object> prototype) {
196 CALL_HEAP_FUNCTION(Accessors::FunctionSetPrototype(*function, 196 CALL_HEAP_FUNCTION(Accessors::FunctionSetPrototype(*function,
197 *prototype, 197 *prototype,
198 NULL), 198 NULL),
199 Object); 199 Object);
200 } 200 }
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 Handle<Context> compile_context, 673 Handle<Context> compile_context,
674 Handle<Context> function_context) { 674 Handle<Context> function_context) {
675 Handle<FixedArray> arr = Factory::NewFixedArray(3); 675 Handle<FixedArray> arr = Factory::NewFixedArray(3);
676 arr->set(0, Smi::FromInt(index)); 676 arr->set(0, Smi::FromInt(index));
677 arr->set(1, *compile_context); // Compile in this context 677 arr->set(1, *compile_context); // Compile in this context
678 arr->set(2, *function_context); // Set function context to this 678 arr->set(2, *function_context); // Set function context to this
679 fun->shared()->set_lazy_load_data(*arr); 679 fun->shared()->set_lazy_load_data(*arr);
680 } 680 }
681 681
682 } } // namespace v8::internal 682 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698