| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 // and rcx. | 239 // and rcx. |
| 240 static void LoadAsIntegers(MacroAssembler* masm, | 240 static void LoadAsIntegers(MacroAssembler* masm, |
| 241 bool use_sse3, | 241 bool use_sse3, |
| 242 Label* operand_conversion_failure); | 242 Label* operand_conversion_failure); |
| 243 }; | 243 }; |
| 244 | 244 |
| 245 | 245 |
| 246 // ----------------------------------------------------------------------------- | 246 // ----------------------------------------------------------------------------- |
| 247 // CodeGenerator implementation. | 247 // CodeGenerator implementation. |
| 248 | 248 |
| 249 CodeGenerator::CodeGenerator(int buffer_size, | 249 CodeGenerator::CodeGenerator(MacroAssembler* masm, |
| 250 Handle<Script> script, | 250 Handle<Script> script, |
| 251 bool is_eval) | 251 bool is_eval) |
| 252 : is_eval_(is_eval), | 252 : is_eval_(is_eval), |
| 253 script_(script), | 253 script_(script), |
| 254 deferred_(8), | 254 deferred_(8), |
| 255 masm_(new MacroAssembler(NULL, buffer_size)), | 255 masm_(masm), |
| 256 scope_(NULL), | 256 scope_(NULL), |
| 257 frame_(NULL), | 257 frame_(NULL), |
| 258 allocator_(NULL), | 258 allocator_(NULL), |
| 259 state_(NULL), | 259 state_(NULL), |
| 260 loop_nesting_(0), | 260 loop_nesting_(0), |
| 261 function_return_is_shadowed_(false), | 261 function_return_is_shadowed_(false), |
| 262 in_spilled_code_(false) { | 262 in_spilled_code_(false) { |
| 263 } | 263 } |
| 264 | 264 |
| 265 | 265 |
| (...skipping 8941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9207 // Call the function from C++. | 9207 // Call the function from C++. |
| 9208 return FUNCTION_CAST<ModuloFunction>(buffer); | 9208 return FUNCTION_CAST<ModuloFunction>(buffer); |
| 9209 } | 9209 } |
| 9210 | 9210 |
| 9211 #endif | 9211 #endif |
| 9212 | 9212 |
| 9213 | 9213 |
| 9214 #undef __ | 9214 #undef __ |
| 9215 | 9215 |
| 9216 } } // namespace v8::internal | 9216 } } // namespace v8::internal |
| OLD | NEW |