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

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

Issue 13886013: Add infrastructure to automatucally generate IC miss stubs (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review feedback Created 7 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/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 19 matching lines...) Expand all
30 #include "bootstrapper.h" 30 #include "bootstrapper.h"
31 #include "code-stubs.h" 31 #include "code-stubs.h"
32 #include "stub-cache.h" 32 #include "stub-cache.h"
33 #include "factory.h" 33 #include "factory.h"
34 #include "gdb-jit.h" 34 #include "gdb-jit.h"
35 #include "macro-assembler.h" 35 #include "macro-assembler.h"
36 36
37 namespace v8 { 37 namespace v8 {
38 namespace internal { 38 namespace internal {
39 39
40
41 CodeStubInterfaceDescriptor::CodeStubInterfaceDescriptor()
42 : register_param_count_(-1),
43 stack_parameter_count_(NULL),
44 function_mode_(NOT_JS_FUNCTION_STUB_MODE),
45 register_params_(NULL),
46 deoptimization_handler_(NULL),
47 miss_handler_(IC_Utility(IC::kUnreachable), Isolate::Current()) { }
48
49
40 bool CodeStub::FindCodeInCache(Code** code_out, Isolate* isolate) { 50 bool CodeStub::FindCodeInCache(Code** code_out, Isolate* isolate) {
41 UnseededNumberDictionary* stubs = isolate->heap()->code_stubs(); 51 UnseededNumberDictionary* stubs = isolate->heap()->code_stubs();
42 int index = stubs->FindEntry(GetKey()); 52 int index = stubs->FindEntry(GetKey());
43 if (index != UnseededNumberDictionary::kNotFound) { 53 if (index != UnseededNumberDictionary::kNotFound) {
44 *code_out = Code::cast(stubs->ValueAt(index)); 54 *code_out = Code::cast(stubs->ValueAt(index));
45 return true; 55 return true;
46 } 56 }
47 return false; 57 return false;
48 } 58 }
49 59
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 // already active, as the hooks won't stack. 651 // already active, as the hooks won't stack.
642 if (entry_hook != 0 && entry_hook_ != 0) 652 if (entry_hook != 0 && entry_hook_ != 0)
643 return false; 653 return false;
644 654
645 entry_hook_ = entry_hook; 655 entry_hook_ = entry_hook;
646 return true; 656 return true;
647 } 657 }
648 658
649 659
650 } } // namespace v8::internal 660 } } // 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