| OLD | NEW | 
|    1 // Copyright 2015 the V8 project authors. All rights reserved. |    1 // Copyright 2015 the V8 project authors. All rights reserved. | 
|    2 // Use of this source code is governed by a BSD-style license that can be |    2 // Use of this source code is governed by a BSD-style license that can be | 
|    3 // found in the LICENSE file. |    3 // found in the LICENSE file. | 
|    4  |    4  | 
|    5 #include "src/compiler/code-assembler.h" |    5 #include "src/compiler/code-assembler.h" | 
|    6  |    6  | 
|    7 #include <ostream> |    7 #include <ostream> | 
|    8  |    8  | 
|    9 #include "src/code-factory.h" |    9 #include "src/code-factory.h" | 
|   10 #include "src/compiler/graph.h" |   10 #include "src/compiler/graph.h" | 
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  253   CallDescriptor* desc = raw_assembler()->call_descriptor(); |  253   CallDescriptor* desc = raw_assembler()->call_descriptor(); | 
|  254   DCHECK(desc->IsJSFunctionCall()); |  254   DCHECK(desc->IsJSFunctionCall()); | 
|  255   return Parameter(Linkage::GetJSCallContextParamIndex( |  255   return Parameter(Linkage::GetJSCallContextParamIndex( | 
|  256       static_cast<int>(desc->JSParameterCount()))); |  256       static_cast<int>(desc->JSParameterCount()))); | 
|  257 } |  257 } | 
|  258  |  258  | 
|  259 void CodeAssembler::Return(Node* value) { |  259 void CodeAssembler::Return(Node* value) { | 
|  260   return raw_assembler()->Return(value); |  260   return raw_assembler()->Return(value); | 
|  261 } |  261 } | 
|  262  |  262  | 
 |  263 void CodeAssembler::Return(Node* value1, Node* value2) { | 
 |  264   return raw_assembler()->Return(value1, value2); | 
 |  265 } | 
 |  266  | 
 |  267 void CodeAssembler::Return(Node* value1, Node* value2, Node* value3) { | 
 |  268   return raw_assembler()->Return(value1, value2, value3); | 
 |  269 } | 
 |  270  | 
|  263 void CodeAssembler::PopAndReturn(Node* pop, Node* value) { |  271 void CodeAssembler::PopAndReturn(Node* pop, Node* value) { | 
|  264   return raw_assembler()->PopAndReturn(pop, value); |  272   return raw_assembler()->PopAndReturn(pop, value); | 
|  265 } |  273 } | 
|  266  |  274  | 
|  267 void CodeAssembler::DebugBreak() { raw_assembler()->DebugBreak(); } |  275 void CodeAssembler::DebugBreak() { raw_assembler()->DebugBreak(); } | 
|  268  |  276  | 
|  269 void CodeAssembler::Comment(const char* format, ...) { |  277 void CodeAssembler::Comment(const char* format, ...) { | 
|  270   if (!FLAG_code_comments) return; |  278   if (!FLAG_code_comments) return; | 
|  271   char buffer[4 * KB]; |  279   char buffer[4 * KB]; | 
|  272   StringBuilder builder(buffer, arraysize(buffer)); |  280   StringBuilder builder(buffer, arraysize(buffer)); | 
| (...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  840       } |  848       } | 
|  841     } |  849     } | 
|  842   } |  850   } | 
|  843  |  851  | 
|  844   bound_ = true; |  852   bound_ = true; | 
|  845 } |  853 } | 
|  846  |  854  | 
|  847 }  // namespace compiler |  855 }  // namespace compiler | 
|  848 }  // namespace internal |  856 }  // namespace internal | 
|  849 }  // namespace v8 |  857 }  // namespace v8 | 
| OLD | NEW |