OLD | NEW |
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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 | 121 |
122 void TransformToFastProperties(Handle<JSObject> object, | 122 void TransformToFastProperties(Handle<JSObject> object, |
123 int unused_property_fields) { | 123 int unused_property_fields) { |
124 CALL_HEAP_FUNCTION_VOID( | 124 CALL_HEAP_FUNCTION_VOID( |
125 object->TransformToFastProperties(unused_property_fields)); | 125 object->TransformToFastProperties(unused_property_fields)); |
126 } | 126 } |
127 | 127 |
128 | 128 |
129 void FlattenString(Handle<String> string) { | 129 void FlattenString(Handle<String> string) { |
130 if (string->IsFlat()) return; | 130 if (string->IsFlat()) return; |
131 CALL_HEAP_FUNCTION_VOID(String::cast(*string)->Flatten()); | 131 CALL_HEAP_FUNCTION_VOID(string->Flatten()); |
132 ASSERT(string->IsFlat()); | 132 ASSERT(string->IsFlat()); |
133 } | 133 } |
134 | 134 |
135 | 135 |
136 Handle<Object> SetPrototype(Handle<JSFunction> function, | 136 Handle<Object> SetPrototype(Handle<JSFunction> function, |
137 Handle<Object> prototype) { | 137 Handle<Object> prototype) { |
138 CALL_HEAP_FUNCTION(Accessors::FunctionSetPrototype(*function, | 138 CALL_HEAP_FUNCTION(Accessors::FunctionSetPrototype(*function, |
139 *prototype, | 139 *prototype, |
140 NULL), | 140 NULL), |
141 Object); | 141 Object); |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 Handle<Context> security_context) { | 549 Handle<Context> security_context) { |
550 Handle<FixedArray> arr = Factory::NewFixedArray(4); | 550 Handle<FixedArray> arr = Factory::NewFixedArray(4); |
551 arr->set(0, Smi::FromInt(index)); | 551 arr->set(0, Smi::FromInt(index)); |
552 arr->set(1, *compile_context); // Compile in this context | 552 arr->set(1, *compile_context); // Compile in this context |
553 arr->set(2, *function_context); // Set function context to this | 553 arr->set(2, *function_context); // Set function context to this |
554 arr->set(3, *security_context); // Receiver for call | 554 arr->set(3, *security_context); // Receiver for call |
555 fun->shared()->set_lazy_load_data(*arr); | 555 fun->shared()->set_lazy_load_data(*arr); |
556 } | 556 } |
557 | 557 |
558 } } // namespace v8::internal | 558 } } // namespace v8::internal |
OLD | NEW |