| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 79     if (info->IsStub()) { | 79     if (info->IsStub()) { | 
| 80       const char* name = | 80       const char* name = | 
| 81           CodeStub::MajorName(info->code_stub()->MajorKey(), true); | 81           CodeStub::MajorName(info->code_stub()->MajorKey(), true); | 
| 82       PrintF("%s", name == NULL ? "<unknown>" : name); | 82       PrintF("%s", name == NULL ? "<unknown>" : name); | 
| 83     } else { | 83     } else { | 
| 84       info->function()->name()->ShortPrint(); | 84       info->function()->name()->ShortPrint(); | 
| 85     } | 85     } | 
| 86     PrintF(" ***\n"); | 86     PrintF(" ***\n"); | 
| 87   } | 87   } | 
| 88 | 88 | 
| 89   if (print_source) { | 89   if (!info->IsStub() && print_source) { | 
| 90     PrintF("--- Source from AST ---\n%s\n", | 90     PrintF("--- Source from AST ---\n%s\n", | 
| 91            PrettyPrinter().PrintProgram(info->function())); | 91            PrettyPrinter().PrintProgram(info->function())); | 
| 92   } | 92   } | 
| 93 | 93 | 
| 94   if (print_ast) { | 94   if (!info->IsStub() && print_ast) { | 
| 95     PrintF("--- AST ---\n%s\n", | 95     PrintF("--- AST ---\n%s\n", | 
| 96            AstPrinter().PrintProgram(info->function())); | 96            AstPrinter().PrintProgram(info->function())); | 
| 97   } | 97   } | 
| 98 #endif  // DEBUG | 98 #endif  // DEBUG | 
| 99 } | 99 } | 
| 100 | 100 | 
| 101 | 101 | 
| 102 Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm, | 102 Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm, | 
| 103                                              Code::Flags flags, | 103                                              Code::Flags flags, | 
| 104                                              CompilationInfo* info) { | 104                                              CompilationInfo* info) { | 
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 218   ASSERT(result_size_ == 1 || result_size_ == 2); | 218   ASSERT(result_size_ == 1 || result_size_ == 2); | 
| 219 #ifdef _WIN64 | 219 #ifdef _WIN64 | 
| 220   return result | ((result_size_ == 1) ? 0 : 2); | 220   return result | ((result_size_ == 1) ? 0 : 2); | 
| 221 #else | 221 #else | 
| 222   return result; | 222   return result; | 
| 223 #endif | 223 #endif | 
| 224 } | 224 } | 
| 225 | 225 | 
| 226 | 226 | 
| 227 } }  // namespace v8::internal | 227 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|