OLD | NEW |
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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 void NormalizeProperties(Handle<JSObject> object, | 207 void NormalizeProperties(Handle<JSObject> object, |
208 PropertyNormalizationMode mode, | 208 PropertyNormalizationMode mode, |
209 int expected_additional_properties) { | 209 int expected_additional_properties) { |
210 CALL_HEAP_FUNCTION_VOID(object->GetIsolate(), | 210 CALL_HEAP_FUNCTION_VOID(object->GetIsolate(), |
211 object->NormalizeProperties( | 211 object->NormalizeProperties( |
212 mode, | 212 mode, |
213 expected_additional_properties)); | 213 expected_additional_properties)); |
214 } | 214 } |
215 | 215 |
216 | 216 |
217 Handle<NumberDictionary> NormalizeElements(Handle<JSObject> object) { | 217 Handle<SeededNumberDictionary> NormalizeElements(Handle<JSObject> object) { |
218 CALL_HEAP_FUNCTION(object->GetIsolate(), | 218 CALL_HEAP_FUNCTION(object->GetIsolate(), |
219 object->NormalizeElements(), | 219 object->NormalizeElements(), |
220 NumberDictionary); | 220 SeededNumberDictionary); |
221 } | 221 } |
222 | 222 |
223 | 223 |
224 void TransformToFastProperties(Handle<JSObject> object, | 224 void TransformToFastProperties(Handle<JSObject> object, |
225 int unused_property_fields) { | 225 int unused_property_fields) { |
226 CALL_HEAP_FUNCTION_VOID( | 226 CALL_HEAP_FUNCTION_VOID( |
227 object->GetIsolate(), | 227 object->GetIsolate(), |
228 object->TransformToFastProperties(unused_property_fields)); | 228 object->TransformToFastProperties(unused_property_fields)); |
229 } | 229 } |
230 | 230 |
231 | 231 |
232 Handle<NumberDictionary> NumberDictionarySet( | 232 Handle<SeededNumberDictionary> SeededNumberDictionarySet( |
233 Handle<NumberDictionary> dictionary, | 233 Handle<SeededNumberDictionary> dictionary, |
234 uint32_t index, | 234 uint32_t index, |
235 Handle<Object> value, | 235 Handle<Object> value, |
236 PropertyDetails details) { | 236 PropertyDetails details) { |
237 CALL_HEAP_FUNCTION(dictionary->GetIsolate(), | 237 CALL_HEAP_FUNCTION(dictionary->GetIsolate(), |
238 dictionary->Set(index, *value, details), | 238 dictionary->Set(index, *value, details), |
239 NumberDictionary); | 239 SeededNumberDictionary); |
240 } | 240 } |
241 | 241 |
242 | 242 |
243 void FlattenString(Handle<String> string) { | 243 void FlattenString(Handle<String> string) { |
244 CALL_HEAP_FUNCTION_VOID(string->GetIsolate(), string->TryFlatten()); | 244 CALL_HEAP_FUNCTION_VOID(string->GetIsolate(), string->TryFlatten()); |
245 } | 245 } |
246 | 246 |
247 | 247 |
248 Handle<String> FlattenGetString(Handle<String> string) { | 248 Handle<String> FlattenGetString(Handle<String> string) { |
249 CALL_HEAP_FUNCTION(string->GetIsolate(), string->TryFlatten(), String); | 249 CALL_HEAP_FUNCTION(string->GetIsolate(), string->TryFlatten(), String); |
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
937 | 937 |
938 bool CompileOptimized(Handle<JSFunction> function, | 938 bool CompileOptimized(Handle<JSFunction> function, |
939 int osr_ast_id, | 939 int osr_ast_id, |
940 ClearExceptionFlag flag) { | 940 ClearExceptionFlag flag) { |
941 CompilationInfo info(function); | 941 CompilationInfo info(function); |
942 info.SetOptimizing(osr_ast_id); | 942 info.SetOptimizing(osr_ast_id); |
943 return CompileLazyHelper(&info, flag); | 943 return CompileLazyHelper(&info, flag); |
944 } | 944 } |
945 | 945 |
946 } } // namespace v8::internal | 946 } } // namespace v8::internal |
OLD | NEW |