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

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

Issue 228263005: Implement structural function and array types (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Eps Created 6 years, 8 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/objects-inl.h ('k') | src/types.h » ('j') | src/types.h » ('J')
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 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 last->property_dictionary()->FindEntry(*name) == 893 last->property_dictionary()->FindEntry(*name) ==
894 NameDictionary::kNotFound); 894 NameDictionary::kNotFound);
895 GenerateDictionaryNegativeLookup(masm(), &miss, holder, name, 895 GenerateDictionaryNegativeLookup(masm(), &miss, holder, name,
896 scratch2(), scratch3()); 896 scratch2(), scratch3());
897 } 897 }
898 898
899 // If the last object in the prototype chain is a global object, 899 // If the last object in the prototype chain is a global object,
900 // check that the global property cell is empty. 900 // check that the global property cell is empty.
901 if (last_map->IsJSGlobalObjectMap()) { 901 if (last_map->IsJSGlobalObjectMap()) {
902 Handle<JSGlobalObject> global = last.is_null() 902 Handle<JSGlobalObject> global = last.is_null()
903 ? Handle<JSGlobalObject>::cast(type->AsConstant()) 903 ? Handle<JSGlobalObject>::cast(type->AsConstant()->Value())
904 : Handle<JSGlobalObject>::cast(last); 904 : Handle<JSGlobalObject>::cast(last);
905 GenerateCheckPropertyCell(masm(), global, name, scratch2(), &miss); 905 GenerateCheckPropertyCell(masm(), global, name, scratch2(), &miss);
906 } 906 }
907 907
908 HandlerFrontendFooter(name, &miss); 908 HandlerFrontendFooter(name, &miss);
909 } 909 }
910 910
911 911
912 Handle<Code> LoadStubCompiler::CompileLoadField( 912 Handle<Code> LoadStubCompiler::CompileLoadField(
913 Handle<HeapType> type, 913 Handle<HeapType> type,
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
1497 Handle<FunctionTemplateInfo>( 1497 Handle<FunctionTemplateInfo>(
1498 FunctionTemplateInfo::cast(signature->receiver())); 1498 FunctionTemplateInfo::cast(signature->receiver()));
1499 } 1499 }
1500 } 1500 }
1501 1501
1502 is_simple_api_call_ = true; 1502 is_simple_api_call_ = true;
1503 } 1503 }
1504 1504
1505 1505
1506 } } // namespace v8::internal 1506 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/types.h » ('j') | src/types.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698