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

Side by Side Diff: src/x64/codegen-x64.h

Issue 442024: Perform string add in generated code on IA-32 platforms... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years 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
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 537
538 // Fast support for Math.random(). 538 // Fast support for Math.random().
539 void GenerateRandomPositiveSmi(ZoneList<Expression*>* args); 539 void GenerateRandomPositiveSmi(ZoneList<Expression*>* args);
540 540
541 // Fast support for Math.sin and Math.cos. 541 // Fast support for Math.sin and Math.cos.
542 enum MathOp { SIN, COS }; 542 enum MathOp { SIN, COS };
543 void GenerateFastMathOp(MathOp op, ZoneList<Expression*>* args); 543 void GenerateFastMathOp(MathOp op, ZoneList<Expression*>* args);
544 inline void GenerateMathSin(ZoneList<Expression*>* args); 544 inline void GenerateMathSin(ZoneList<Expression*>* args);
545 inline void GenerateMathCos(ZoneList<Expression*>* args); 545 inline void GenerateMathCos(ZoneList<Expression*>* args);
546 546
547 // Fast support for StringAdd.
548 void GenerateStringAdd(ZoneList<Expression*>* args);
549
547 // Simple condition analysis. 550 // Simple condition analysis.
548 enum ConditionAnalysis { 551 enum ConditionAnalysis {
549 ALWAYS_TRUE, 552 ALWAYS_TRUE,
550 ALWAYS_FALSE, 553 ALWAYS_FALSE,
551 DONT_KNOW 554 DONT_KNOW
552 }; 555 };
553 ConditionAnalysis AnalyzeCondition(Expression* cond); 556 ConditionAnalysis AnalyzeCondition(Expression* cond);
554 557
555 // Methods used to indicate which source code is generated for. Source 558 // Methods used to indicate which source code is generated for. Source
556 // positions are collected by the assembler and emitted with the relocation 559 // positions are collected by the assembler and emitted with the relocation
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 void SetArgsReversed() { args_reversed_ = true; } 741 void SetArgsReversed() { args_reversed_ = true; }
739 bool HasSmiCodeInStub() { return (flags_ & NO_SMI_CODE_IN_STUB) == 0; } 742 bool HasSmiCodeInStub() { return (flags_ & NO_SMI_CODE_IN_STUB) == 0; }
740 bool HasArgumentsInRegisters() { return args_in_registers_; } 743 bool HasArgumentsInRegisters() { return args_in_registers_; }
741 bool HasArgumentsReversed() { return args_reversed_; } 744 bool HasArgumentsReversed() { return args_reversed_; }
742 }; 745 };
743 746
744 747
745 } } // namespace v8::internal 748 } } // namespace v8::internal
746 749
747 #endif // V8_X64_CODEGEN_X64_H_ 750 #endif // V8_X64_CODEGEN_X64_H_
OLDNEW
« src/ia32/codegen-ia32.cc ('K') | « src/v8-counters.h ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698