OLD | NEW |
---|---|
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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
295 Visit(expr->left()); | 295 Visit(expr->left()); |
296 Visit(expr->right()); | 296 Visit(expr->right()); |
297 } | 297 } |
298 | 298 |
299 | 299 |
300 void BreakableStatementChecker::VisitThisFunction(ThisFunction* expr) { | 300 void BreakableStatementChecker::VisitThisFunction(ThisFunction* expr) { |
301 } | 301 } |
302 | 302 |
303 | 303 |
304 #define __ ACCESS_MASM(masm()) | 304 #define __ ACCESS_MASM(masm()) |
305 #if V8_TARGET_ARCH_X32 | |
danno
2013/07/17 13:33:21
I am not sure why x32 needs this, but there should
haitao.feng
2013/07/18 10:04:09
In this file, 32-bits push/pop is needed but there
| |
306 #define push Push | |
307 #define pop Pop | |
308 #endif | |
305 | 309 |
306 bool FullCodeGenerator::MakeCode(CompilationInfo* info) { | 310 bool FullCodeGenerator::MakeCode(CompilationInfo* info) { |
307 Isolate* isolate = info->isolate(); | 311 Isolate* isolate = info->isolate(); |
308 Handle<Script> script = info->script(); | 312 Handle<Script> script = info->script(); |
309 if (!script->IsUndefined() && !script->source()->IsUndefined()) { | 313 if (!script->IsUndefined() && !script->source()->IsUndefined()) { |
310 int len = String::cast(script->source())->length(); | 314 int len = String::cast(script->source())->length(); |
311 isolate->counters()->total_full_codegen_source_size()->Increment(len); | 315 isolate->counters()->total_full_codegen_source_size()->Increment(len); |
312 } | 316 } |
313 CodeGenerator::MakeCodePrologue(info, "full"); | 317 CodeGenerator::MakeCodePrologue(info, "full"); |
314 const int kInitialBufferSize = 4 * KB; | 318 const int kInitialBufferSize = 4 * KB; |
(...skipping 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1609 | 1613 |
1610 if (expr->IsLiteralCompareNull(&sub_expr)) { | 1614 if (expr->IsLiteralCompareNull(&sub_expr)) { |
1611 EmitLiteralCompareNil(expr, sub_expr, kNullValue); | 1615 EmitLiteralCompareNil(expr, sub_expr, kNullValue); |
1612 return true; | 1616 return true; |
1613 } | 1617 } |
1614 | 1618 |
1615 return false; | 1619 return false; |
1616 } | 1620 } |
1617 | 1621 |
1618 | 1622 |
1623 #if V8_TARGET_ARCH_X32 | |
1624 #undef push | |
1625 #undef pop | |
1626 #endif | |
1619 #undef __ | 1627 #undef __ |
1620 | 1628 |
1621 | 1629 |
1622 } } // namespace v8::internal | 1630 } } // namespace v8::internal |
OLD | NEW |