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

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

Issue 11411351: Implement basic array prefetching hints in Hydrogen. Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 11 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 | « no previous file | src/flag-definitions.h » ('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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 75 }
76 HBasicBlock* next_block = graph()->CreateBasicBlock(); 76 HBasicBlock* next_block = graph()->CreateBasicBlock();
77 next_block->SetInitialEnvironment(graph()->start_environment()); 77 next_block->SetInitialEnvironment(graph()->start_environment());
78 HGoto* jump = new(zone()) HGoto(next_block); 78 HGoto* jump = new(zone()) HGoto(next_block);
79 graph()->entry_block()->Finish(jump); 79 graph()->entry_block()->Finish(jump);
80 set_current_block(next_block); 80 set_current_block(next_block);
81 81
82 context_ = new(zone()) HContext(); 82 context_ = new(zone()) HContext();
83 AddInstruction(context_); 83 AddInstruction(context_);
84 84
85 HConstant* undefined_constant = new(zone()) HConstant(
86 info_.isolate()->factory()->undefined_value(), Representation::Tagged());
87 AddInstruction(undefined_constant);
88 graph()->set_undefined_constant(undefined_constant);
89
85 int major_key = stub()->MajorKey(); 90 int major_key = stub()->MajorKey();
86 CodeStubInterfaceDescriptor* descriptor = 91 CodeStubInterfaceDescriptor* descriptor =
87 info_.isolate()->code_stub_interface_descriptor(major_key); 92 info_.isolate()->code_stub_interface_descriptor(major_key);
88 if (descriptor->register_param_count_ < 0) { 93 if (descriptor->register_param_count_ < 0) {
89 stub()->InitializeInterfaceDescriptor(info_.isolate(), descriptor); 94 stub()->InitializeInterfaceDescriptor(info_.isolate(), descriptor);
90 } 95 }
91 parameters_.Reset(new HParameter*[descriptor->register_param_count_]); 96 parameters_.Reset(new HParameter*[descriptor->register_param_count_]);
92 97
93 HGraph* graph = this->graph(); 98 HGraph* graph = this->graph();
94 Zone* zone = this->zone(); 99 Zone* zone = this->zone();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } 136 }
132 137
133 138
134 Handle<Code> KeyedLoadFastElementStub::GenerateCode() { 139 Handle<Code> KeyedLoadFastElementStub::GenerateCode() {
135 CodeStubGraphBuilder<KeyedLoadFastElementStub> builder(this); 140 CodeStubGraphBuilder<KeyedLoadFastElementStub> builder(this);
136 return CodeFromGraph(builder.CreateGraph()); 141 return CodeFromGraph(builder.CreateGraph());
137 } 142 }
138 143
139 144
140 } } // namespace v8::internal 145 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698