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

Side by Side Diff: src/ic.cc

Issue 23757017: remove Isolate::Current from most files starting with 'o' through 'r' (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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/factory.cc ('k') | src/json-stringifier.h » ('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 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 // If the object is undefined or null it's illegal to try to get any 559 // If the object is undefined or null it's illegal to try to get any
560 // of its properties; throw a TypeError in that case. 560 // of its properties; throw a TypeError in that case.
561 if (object->IsUndefined() || object->IsNull()) { 561 if (object->IsUndefined() || object->IsNull()) {
562 return TypeError("non_object_property_call", object, name); 562 return TypeError("non_object_property_call", object, name);
563 } 563 }
564 564
565 // Check if the name is trivially convertible to an index and get 565 // Check if the name is trivially convertible to an index and get
566 // the element if so. 566 // the element if so.
567 uint32_t index; 567 uint32_t index;
568 if (name->AsArrayIndex(&index)) { 568 if (name->AsArrayIndex(&index)) {
569 Handle<Object> result = Object::GetElement(object, index); 569 Handle<Object> result = Object::GetElement(isolate(), object, index);
570 RETURN_IF_EMPTY_HANDLE(isolate(), result); 570 RETURN_IF_EMPTY_HANDLE(isolate(), result);
571 if (result->IsJSFunction()) return *result; 571 if (result->IsJSFunction()) return *result;
572 572
573 // Try to find a suitable function delegate for the object at hand. 573 // Try to find a suitable function delegate for the object at hand.
574 result = TryCallAsFunction(result); 574 result = TryCallAsFunction(result);
575 if (result->IsJSFunction()) return *result; 575 if (result->IsJSFunction()) return *result;
576 576
577 // Otherwise, it will fail in the lookup step. 577 // Otherwise, it will fail in the lookup step.
578 } 578 }
579 579
(...skipping 2525 matching lines...) Expand 10 before | Expand all | Expand 10 after
3105 #undef ADDR 3105 #undef ADDR
3106 }; 3106 };
3107 3107
3108 3108
3109 Address IC::AddressFromUtilityId(IC::UtilityId id) { 3109 Address IC::AddressFromUtilityId(IC::UtilityId id) {
3110 return IC_utilities[id]; 3110 return IC_utilities[id];
3111 } 3111 }
3112 3112
3113 3113
3114 } } // namespace v8::internal 3114 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/json-stringifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698