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 5623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5634 } | 5634 } |
5635 | 5635 |
5636 | 5636 |
5637 Handle<JSObject> JSObject::Copy(Handle<JSObject> object) { | 5637 Handle<JSObject> JSObject::Copy(Handle<JSObject> object) { |
5638 Isolate* isolate = object->GetIsolate(); | 5638 Isolate* isolate = object->GetIsolate(); |
5639 CALL_HEAP_FUNCTION(isolate, | 5639 CALL_HEAP_FUNCTION(isolate, |
5640 isolate->heap()->CopyJSObject(*object), JSObject); | 5640 isolate->heap()->CopyJSObject(*object), JSObject); |
5641 } | 5641 } |
5642 | 5642 |
5643 | 5643 |
| 5644 Handle<Object> JSObject::FastPropertyAt(Handle<JSObject> object, |
| 5645 Representation representation, |
| 5646 int index) { |
| 5647 Isolate* isolate = object->GetIsolate(); |
| 5648 CALL_HEAP_FUNCTION(isolate, |
| 5649 object->FastPropertyAt(representation, index), Object); |
| 5650 } |
| 5651 |
| 5652 |
5644 template<class ContextObject> | 5653 template<class ContextObject> |
5645 class JSObjectWalkVisitor { | 5654 class JSObjectWalkVisitor { |
5646 public: | 5655 public: |
5647 JSObjectWalkVisitor(ContextObject* site_context, bool copying, | 5656 JSObjectWalkVisitor(ContextObject* site_context, bool copying, |
5648 JSObject::DeepCopyHints hints) | 5657 JSObject::DeepCopyHints hints) |
5649 : site_context_(site_context), | 5658 : site_context_(site_context), |
5650 copying_(copying), | 5659 copying_(copying), |
5651 hints_(hints) {} | 5660 hints_(hints) {} |
5652 | 5661 |
5653 Handle<JSObject> StructureWalk(Handle<JSObject> object); | 5662 Handle<JSObject> StructureWalk(Handle<JSObject> object); |
(...skipping 10778 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 |