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

Side by Side Diff: src/code-stubs.cc

Issue 15806005: fix the compare nil ic (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('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 27 matching lines...) Expand all
38 namespace internal { 38 namespace internal {
39 39
40 40
41 CodeStubInterfaceDescriptor::CodeStubInterfaceDescriptor() 41 CodeStubInterfaceDescriptor::CodeStubInterfaceDescriptor()
42 : register_param_count_(-1), 42 : register_param_count_(-1),
43 stack_parameter_count_(NULL), 43 stack_parameter_count_(NULL),
44 hint_stack_parameter_count_(-1), 44 hint_stack_parameter_count_(-1),
45 function_mode_(NOT_JS_FUNCTION_STUB_MODE), 45 function_mode_(NOT_JS_FUNCTION_STUB_MODE),
46 register_params_(NULL), 46 register_params_(NULL),
47 deoptimization_handler_(NULL), 47 deoptimization_handler_(NULL),
48 miss_handler_(IC_Utility(IC::kUnreachable), Isolate::Current()) { } 48 miss_handler_(IC_Utility(IC::kUnreachable), Isolate::Current()),
49 has_miss_handler_(false) { }
49 50
50 51
51 bool CodeStub::FindCodeInCache(Code** code_out, Isolate* isolate) { 52 bool CodeStub::FindCodeInCache(Code** code_out, Isolate* isolate) {
52 UnseededNumberDictionary* stubs = isolate->heap()->code_stubs(); 53 UnseededNumberDictionary* stubs = isolate->heap()->code_stubs();
53 int index = stubs->FindEntry(GetKey()); 54 int index = stubs->FindEntry(GetKey());
54 if (index != UnseededNumberDictionary::kNotFound) { 55 if (index != UnseededNumberDictionary::kNotFound) {
55 *code_out = Code::cast(stubs->ValueAt(index)); 56 *code_out = Code::cast(stubs->ValueAt(index));
56 return true; 57 return true;
57 } 58 }
58 return false; 59 return false;
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 } else if (argument_count >= 2) { 744 } else if (argument_count >= 2) {
744 argument_count_ = MORE_THAN_ONE; 745 argument_count_ = MORE_THAN_ONE;
745 } else { 746 } else {
746 UNREACHABLE(); 747 UNREACHABLE();
747 } 748 }
748 ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 749 ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
749 } 750 }
750 751
751 752
752 } } // namespace v8::internal 753 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698