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 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 | 902 |
903 StubCompiler compiler(isolate_); | 903 StubCompiler compiler(isolate_); |
904 Handle<Code> code = compiler.CompileCallMiss(flags); | 904 Handle<Code> code = compiler.CompileCallMiss(flags); |
905 FillCache(isolate_, code); | 905 FillCache(isolate_, code); |
906 return code; | 906 return code; |
907 } | 907 } |
908 | 908 |
909 | 909 |
910 Handle<Code> StubCache::ComputeCompareNil(Handle<Map> receiver_map, | 910 Handle<Code> StubCache::ComputeCompareNil(Handle<Map> receiver_map, |
911 CompareNilICStub& stub) { | 911 CompareNilICStub& stub) { |
912 stub.SetKind(kNonStrictEquality); | |
913 | |
914 Handle<String> name(isolate_->heap()->empty_string()); | 912 Handle<String> name(isolate_->heap()->empty_string()); |
915 if (!receiver_map->is_shared()) { | 913 if (!receiver_map->is_shared()) { |
916 Handle<Code> cached_ic = FindIC(name, receiver_map, Code::COMPARE_NIL_IC, | 914 Handle<Code> cached_ic = FindIC(name, receiver_map, Code::COMPARE_NIL_IC, |
917 Code::NORMAL, stub.GetExtraICState()); | 915 Code::NORMAL, stub.GetExtraICState()); |
918 if (!cached_ic.is_null()) return cached_ic; | 916 if (!cached_ic.is_null()) return cached_ic; |
919 } | 917 } |
920 | 918 |
921 Handle<Code> ic = stub.GetCode(isolate_); | 919 Handle<Code> ic = stub.GetCode(isolate_); |
922 | 920 |
923 // For monomorphic maps, use the code as a template, copying and replacing | 921 // For monomorphic maps, use the code as a template, copying and replacing |
(...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2095 Handle<FunctionTemplateInfo>( | 2093 Handle<FunctionTemplateInfo>( |
2096 FunctionTemplateInfo::cast(signature->receiver())); | 2094 FunctionTemplateInfo::cast(signature->receiver())); |
2097 } | 2095 } |
2098 } | 2096 } |
2099 | 2097 |
2100 is_simple_api_call_ = true; | 2098 is_simple_api_call_ = true; |
2101 } | 2099 } |
2102 | 2100 |
2103 | 2101 |
2104 } } // namespace v8::internal | 2102 } } // namespace v8::internal |
OLD | NEW |