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 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1091 | 1091 |
1092 FixupCodeRelativePositions(); | 1092 FixupCodeRelativePositions(); |
1093 | 1093 |
1094 CodeDesc code_desc; | 1094 CodeDesc code_desc; |
1095 masm_.GetCode(&code_desc); | 1095 masm_.GetCode(&code_desc); |
1096 Isolate* isolate = ISOLATE; | 1096 Isolate* isolate = ISOLATE; |
1097 Handle<Code> code = isolate->factory()->NewCode( | 1097 Handle<Code> code = isolate->factory()->NewCode( |
1098 code_desc, Code::ComputeFlags(Code::REGEXP), | 1098 code_desc, Code::ComputeFlags(Code::REGEXP), |
1099 masm_.CodeObject()); | 1099 masm_.CodeObject()); |
1100 PROFILE(isolate, RegExpCodeCreateEvent(*code, *source)); | 1100 PROFILE(isolate, RegExpCodeCreateEvent(*code, *source)); |
| 1101 JIT_CODE_EVENT(AddCode(*source, *code)); |
1101 return Handle<HeapObject>::cast(code); | 1102 return Handle<HeapObject>::cast(code); |
1102 } | 1103 } |
1103 | 1104 |
1104 | 1105 |
1105 void RegExpMacroAssemblerX64::GoTo(Label* to) { | 1106 void RegExpMacroAssemblerX64::GoTo(Label* to) { |
1106 BranchOrBacktrack(no_condition, to); | 1107 BranchOrBacktrack(no_condition, to); |
1107 } | 1108 } |
1108 | 1109 |
1109 | 1110 |
1110 void RegExpMacroAssemblerX64::IfRegisterGE(int reg, | 1111 void RegExpMacroAssemblerX64::IfRegisterGE(int reg, |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1535 } | 1536 } |
1536 } | 1537 } |
1537 | 1538 |
1538 #undef __ | 1539 #undef __ |
1539 | 1540 |
1540 #endif // V8_INTERPRETED_REGEXP | 1541 #endif // V8_INTERPRETED_REGEXP |
1541 | 1542 |
1542 }} // namespace v8::internal | 1543 }} // namespace v8::internal |
1543 | 1544 |
1544 #endif // V8_TARGET_ARCH_X64 | 1545 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |