OLD | NEW |
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 883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
894 last->property_dictionary()->FindEntry(*name) == | 894 last->property_dictionary()->FindEntry(*name) == |
895 NameDictionary::kNotFound); | 895 NameDictionary::kNotFound); |
896 GenerateDictionaryNegativeLookup(masm(), &miss, holder, name, | 896 GenerateDictionaryNegativeLookup(masm(), &miss, holder, name, |
897 scratch2(), scratch3()); | 897 scratch2(), scratch3()); |
898 } | 898 } |
899 | 899 |
900 // If the last object in the prototype chain is a global object, | 900 // If the last object in the prototype chain is a global object, |
901 // check that the global property cell is empty. | 901 // check that the global property cell is empty. |
902 if (last_map->IsJSGlobalObjectMap()) { | 902 if (last_map->IsJSGlobalObjectMap()) { |
903 Handle<JSGlobalObject> global = last.is_null() | 903 Handle<JSGlobalObject> global = last.is_null() |
904 ? Handle<JSGlobalObject>::cast(type->AsConstant()->Value()) | 904 ? Handle<JSGlobalObject>::cast(type->AsConstant()) |
905 : Handle<JSGlobalObject>::cast(last); | 905 : Handle<JSGlobalObject>::cast(last); |
906 GenerateCheckPropertyCell(masm(), global, name, scratch2(), &miss); | 906 GenerateCheckPropertyCell(masm(), global, name, scratch2(), &miss); |
907 } | 907 } |
908 | 908 |
909 HandlerFrontendFooter(name, &miss); | 909 HandlerFrontendFooter(name, &miss); |
910 } | 910 } |
911 | 911 |
912 | 912 |
913 Handle<Code> LoadStubCompiler::CompileLoadField( | 913 Handle<Code> LoadStubCompiler::CompileLoadField( |
914 Handle<HeapType> type, | 914 Handle<HeapType> type, |
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1499 Handle<FunctionTemplateInfo>( | 1499 Handle<FunctionTemplateInfo>( |
1500 FunctionTemplateInfo::cast(signature->receiver())); | 1500 FunctionTemplateInfo::cast(signature->receiver())); |
1501 } | 1501 } |
1502 } | 1502 } |
1503 | 1503 |
1504 is_simple_api_call_ = true; | 1504 is_simple_api_call_ = true; |
1505 } | 1505 } |
1506 | 1506 |
1507 | 1507 |
1508 } } // namespace v8::internal | 1508 } } // namespace v8::internal |
OLD | NEW |