OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 5622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5633 } | 5633 } |
5634 | 5634 |
5635 | 5635 |
5636 Handle<JSObject> JSObject::Copy(Handle<JSObject> object) { | 5636 Handle<JSObject> JSObject::Copy(Handle<JSObject> object) { |
5637 Isolate* isolate = object->GetIsolate(); | 5637 Isolate* isolate = object->GetIsolate(); |
5638 CALL_HEAP_FUNCTION(isolate, | 5638 CALL_HEAP_FUNCTION(isolate, |
5639 isolate->heap()->CopyJSObject(*object), JSObject); | 5639 isolate->heap()->CopyJSObject(*object), JSObject); |
5640 } | 5640 } |
5641 | 5641 |
5642 | 5642 |
| 5643 Handle<Object> JSObject::FastPropertyAt(Handle<JSObject> object, |
| 5644 Representation representation, |
| 5645 int index) { |
| 5646 Isolate* isolate = object->GetIsolate(); |
| 5647 CALL_HEAP_FUNCTION(isolate, |
| 5648 object->FastPropertyAt(representation, index), Object); |
| 5649 } |
| 5650 |
| 5651 |
5643 template<class ContextObject> | 5652 template<class ContextObject> |
5644 class JSObjectWalkVisitor { | 5653 class JSObjectWalkVisitor { |
5645 public: | 5654 public: |
5646 JSObjectWalkVisitor(ContextObject* site_context, bool copying, | 5655 JSObjectWalkVisitor(ContextObject* site_context, bool copying, |
5647 JSObject::DeepCopyHints hints) | 5656 JSObject::DeepCopyHints hints) |
5648 : site_context_(site_context), | 5657 : site_context_(site_context), |
5649 copying_(copying), | 5658 copying_(copying), |
5650 hints_(hints) {} | 5659 hints_(hints) {} |
5651 | 5660 |
5652 Handle<JSObject> StructureWalk(Handle<JSObject> object); | 5661 Handle<JSObject> StructureWalk(Handle<JSObject> object); |
(...skipping 10779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16432 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16441 #define ERROR_MESSAGES_TEXTS(C, T) T, |
16433 static const char* error_messages_[] = { | 16442 static const char* error_messages_[] = { |
16434 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16443 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
16435 }; | 16444 }; |
16436 #undef ERROR_MESSAGES_TEXTS | 16445 #undef ERROR_MESSAGES_TEXTS |
16437 return error_messages_[reason]; | 16446 return error_messages_[reason]; |
16438 } | 16447 } |
16439 | 16448 |
16440 | 16449 |
16441 } } // namespace v8::internal | 16450 } } // namespace v8::internal |
OLD | NEW |