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

Side by Side Diff: src/stub-cache.cc

Issue 28783002: Handlify PropertyCell::SetValueInferType and friends. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Andreas Rossberg. Created 7 years, 1 month 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/objects.cc ('k') | no next file » | 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 return code; 261 return code;
262 } 262 }
263 263
264 264
265 Handle<Code> StubCache::ComputeStoreGlobal(Handle<Name> name, 265 Handle<Code> StubCache::ComputeStoreGlobal(Handle<Name> name,
266 Handle<GlobalObject> receiver, 266 Handle<GlobalObject> receiver,
267 Handle<PropertyCell> cell, 267 Handle<PropertyCell> cell,
268 Handle<Object> value, 268 Handle<Object> value,
269 StrictModeFlag strict_mode) { 269 StrictModeFlag strict_mode) {
270 Isolate* isolate = cell->GetIsolate(); 270 Isolate* isolate = cell->GetIsolate();
271 Handle<Type> union_type(PropertyCell::UpdateType(cell, value), isolate); 271 Handle<Type> union_type(PropertyCell::UpdatedType(cell, value), isolate);
272 bool is_constant = union_type->IsConstant(); 272 bool is_constant = union_type->IsConstant();
273 StoreGlobalStub stub(strict_mode, is_constant); 273 StoreGlobalStub stub(strict_mode, is_constant);
274 274
275 Handle<Code> code = FindIC( 275 Handle<Code> code = FindIC(
276 name, Handle<JSObject>::cast(receiver), 276 name, Handle<JSObject>::cast(receiver),
277 Code::STORE_IC, stub.GetExtraICState()); 277 Code::STORE_IC, stub.GetExtraICState());
278 if (!code.is_null()) return code; 278 if (!code.is_null()) return code;
279 279
280 // Replace the placeholder cell and global object map with the actual global 280 // Replace the placeholder cell and global object map with the actual global
281 // cell and receiver map. 281 // cell and receiver map.
(...skipping 1536 matching lines...) Expand 10 before | Expand all | Expand 10 after
1818 Handle<FunctionTemplateInfo>( 1818 Handle<FunctionTemplateInfo>(
1819 FunctionTemplateInfo::cast(signature->receiver())); 1819 FunctionTemplateInfo::cast(signature->receiver()));
1820 } 1820 }
1821 } 1821 }
1822 1822
1823 is_simple_api_call_ = true; 1823 is_simple_api_call_ = true;
1824 } 1824 }
1825 1825
1826 1826
1827 } } // namespace v8::internal 1827 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698