| 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 void NormalizeElements(Handle<JSObject> object) { | 217 Handle<NumberDictionary> NormalizeElements(Handle<JSObject> object) { |
| 218 CALL_HEAP_FUNCTION_VOID(object->GetIsolate(), | 218 CALL_HEAP_FUNCTION(object->GetIsolate(), |
| 219 object->NormalizeElements()); | 219 object->NormalizeElements(), |
| 220 NumberDictionary); |
| 220 } | 221 } |
| 221 | 222 |
| 222 | 223 |
| 223 void TransformToFastProperties(Handle<JSObject> object, | 224 void TransformToFastProperties(Handle<JSObject> object, |
| 224 int unused_property_fields) { | 225 int unused_property_fields) { |
| 225 CALL_HEAP_FUNCTION_VOID( | 226 CALL_HEAP_FUNCTION_VOID( |
| 226 object->GetIsolate(), | 227 object->GetIsolate(), |
| 227 object->TransformToFastProperties(unused_property_fields)); | 228 object->TransformToFastProperties(unused_property_fields)); |
| 228 } | 229 } |
| 229 | 230 |
| (...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 | 971 |
| 971 bool CompileOptimized(Handle<JSFunction> function, | 972 bool CompileOptimized(Handle<JSFunction> function, |
| 972 int osr_ast_id, | 973 int osr_ast_id, |
| 973 ClearExceptionFlag flag) { | 974 ClearExceptionFlag flag) { |
| 974 CompilationInfo info(function); | 975 CompilationInfo info(function); |
| 975 info.SetOptimizing(osr_ast_id); | 976 info.SetOptimizing(osr_ast_id); |
| 976 return CompileLazyHelper(&info, flag); | 977 return CompileLazyHelper(&info, flag); |
| 977 } | 978 } |
| 978 | 979 |
| 979 } } // namespace v8::internal | 980 } } // namespace v8::internal |
| OLD | NEW |