Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: src/api.cc

Issue 10442015: Rollback of r11638, r11636 on trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/api.h ('k') | src/arm/builtins-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 5022 matching lines...) Expand 10 before | Expand all | Expand 10 after
5033 } else { 5033 } else {
5034 return static_cast<uint32_t>(length->Number()); 5034 return static_cast<uint32_t>(length->Number());
5035 } 5035 }
5036 } 5036 }
5037 5037
5038 5038
5039 Local<Object> Array::CloneElementAt(uint32_t index) { 5039 Local<Object> Array::CloneElementAt(uint32_t index) {
5040 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); 5040 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate();
5041 ON_BAILOUT(isolate, "v8::Array::CloneElementAt()", return Local<Object>()); 5041 ON_BAILOUT(isolate, "v8::Array::CloneElementAt()", return Local<Object>());
5042 i::Handle<i::JSObject> self = Utils::OpenHandle(this); 5042 i::Handle<i::JSObject> self = Utils::OpenHandle(this);
5043 if (!self->HasFastObjectElements()) { 5043 if (!self->HasFastElements()) {
5044 return Local<Object>(); 5044 return Local<Object>();
5045 } 5045 }
5046 i::FixedArray* elms = i::FixedArray::cast(self->elements()); 5046 i::FixedArray* elms = i::FixedArray::cast(self->elements());
5047 i::Object* paragon = elms->get(index); 5047 i::Object* paragon = elms->get(index);
5048 if (!paragon->IsJSObject()) { 5048 if (!paragon->IsJSObject()) {
5049 return Local<Object>(); 5049 return Local<Object>();
5050 } 5050 }
5051 i::Handle<i::JSObject> paragon_handle(i::JSObject::cast(paragon)); 5051 i::Handle<i::JSObject> paragon_handle(i::JSObject::cast(paragon));
5052 EXCEPTION_PREAMBLE(isolate); 5052 EXCEPTION_PREAMBLE(isolate);
5053 ENTER_V8(isolate); 5053 ENTER_V8(isolate);
(...skipping 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after
6382 6382
6383 6383
6384 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 6384 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
6385 HandleScopeImplementer* scope_implementer = 6385 HandleScopeImplementer* scope_implementer =
6386 reinterpret_cast<HandleScopeImplementer*>(storage); 6386 reinterpret_cast<HandleScopeImplementer*>(storage);
6387 scope_implementer->IterateThis(v); 6387 scope_implementer->IterateThis(v);
6388 return storage + ArchiveSpacePerThread(); 6388 return storage + ArchiveSpacePerThread();
6389 } 6389 }
6390 6390
6391 } } // namespace v8::internal 6391 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.h ('k') | src/arm/builtins-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698