| 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 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1074 Handle<NumberDictionary> Factory::DictionaryAtNumberPut( | 1074 Handle<NumberDictionary> Factory::DictionaryAtNumberPut( |
| 1075 Handle<NumberDictionary> dictionary, | 1075 Handle<NumberDictionary> dictionary, |
| 1076 uint32_t key, | 1076 uint32_t key, |
| 1077 Handle<Object> value) { | 1077 Handle<Object> value) { |
| 1078 CALL_HEAP_FUNCTION(isolate(), | 1078 CALL_HEAP_FUNCTION(isolate(), |
| 1079 dictionary->AtNumberPut(key, *value), | 1079 dictionary->AtNumberPut(key, *value), |
| 1080 NumberDictionary); | 1080 NumberDictionary); |
| 1081 } | 1081 } |
| 1082 | 1082 |
| 1083 | 1083 |
| 1084 Handle<NotSeededNumberDictionary> Factory::NotSeededDictionaryAtNumberPut( |
| 1085 Handle<NotSeededNumberDictionary> dictionary, |
| 1086 uint32_t key, |
| 1087 Handle<Object> value) { |
| 1088 CALL_HEAP_FUNCTION(isolate(), |
| 1089 dictionary->AtNumberPut(key, *value), |
| 1090 NotSeededNumberDictionary); |
| 1091 } |
| 1092 |
| 1093 |
| 1084 Handle<JSFunction> Factory::NewFunctionHelper(Handle<String> name, | 1094 Handle<JSFunction> Factory::NewFunctionHelper(Handle<String> name, |
| 1085 Handle<Object> prototype) { | 1095 Handle<Object> prototype) { |
| 1086 Handle<SharedFunctionInfo> function_share = NewSharedFunctionInfo(name); | 1096 Handle<SharedFunctionInfo> function_share = NewSharedFunctionInfo(name); |
| 1087 CALL_HEAP_FUNCTION( | 1097 CALL_HEAP_FUNCTION( |
| 1088 isolate(), | 1098 isolate(), |
| 1089 isolate()->heap()->AllocateFunction(*isolate()->function_map(), | 1099 isolate()->heap()->AllocateFunction(*isolate()->function_map(), |
| 1090 *function_share, | 1100 *function_share, |
| 1091 *prototype), | 1101 *prototype), |
| 1092 JSFunction); | 1102 JSFunction); |
| 1093 } | 1103 } |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1391 | 1401 |
| 1392 | 1402 |
| 1393 Handle<Object> Factory::ToBoolean(bool value) { | 1403 Handle<Object> Factory::ToBoolean(bool value) { |
| 1394 return Handle<Object>(value | 1404 return Handle<Object>(value |
| 1395 ? isolate()->heap()->true_value() | 1405 ? isolate()->heap()->true_value() |
| 1396 : isolate()->heap()->false_value()); | 1406 : isolate()->heap()->false_value()); |
| 1397 } | 1407 } |
| 1398 | 1408 |
| 1399 | 1409 |
| 1400 } } // namespace v8::internal | 1410 } } // namespace v8::internal |
| OLD | NEW |