OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-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 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1098 | 1098 |
1099 #ifdef ENABLE_DEBUGGER_SUPPORT | 1099 #ifdef ENABLE_DEBUGGER_SUPPORT |
1100 Object* StubCompiler::CompileCallDebugBreak(Code::Flags flags) { | 1100 Object* StubCompiler::CompileCallDebugBreak(Code::Flags flags) { |
1101 HandleScope scope; | 1101 HandleScope scope; |
1102 Debug::GenerateCallICDebugBreak(masm()); | 1102 Debug::GenerateCallICDebugBreak(masm()); |
1103 Object* result = GetCodeWithFlags(flags, "CompileCallDebugBreak"); | 1103 Object* result = GetCodeWithFlags(flags, "CompileCallDebugBreak"); |
1104 if (!result->IsFailure()) { | 1104 if (!result->IsFailure()) { |
1105 Code* code = Code::cast(result); | 1105 Code* code = Code::cast(result); |
1106 USE(code); | 1106 USE(code); |
1107 Code::Kind kind = Code::ExtractKindFromFlags(flags); | 1107 Code::Kind kind = Code::ExtractKindFromFlags(flags); |
| 1108 USE(kind); |
1108 PROFILE(CodeCreateEvent(CALL_LOGGER_TAG(kind, CALL_DEBUG_BREAK_TAG), | 1109 PROFILE(CodeCreateEvent(CALL_LOGGER_TAG(kind, CALL_DEBUG_BREAK_TAG), |
1109 code, code->arguments_count())); | 1110 code, code->arguments_count())); |
1110 } | 1111 } |
1111 return result; | 1112 return result; |
1112 } | 1113 } |
1113 | 1114 |
1114 | 1115 |
1115 Object* StubCompiler::CompileCallDebugPrepareStepIn(Code::Flags flags) { | 1116 Object* StubCompiler::CompileCallDebugPrepareStepIn(Code::Flags flags) { |
1116 HandleScope scope; | 1117 HandleScope scope; |
1117 // Use the same code for the the step in preparations as we do for | 1118 // Use the same code for the the step in preparations as we do for |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1317 expected_receiver_type_ = | 1318 expected_receiver_type_ = |
1318 FunctionTemplateInfo::cast(signature->receiver()); | 1319 FunctionTemplateInfo::cast(signature->receiver()); |
1319 } | 1320 } |
1320 } | 1321 } |
1321 | 1322 |
1322 is_simple_api_call_ = true; | 1323 is_simple_api_call_ = true; |
1323 } | 1324 } |
1324 | 1325 |
1325 | 1326 |
1326 } } // namespace v8::internal | 1327 } } // namespace v8::internal |
OLD | NEW |