| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 919 String* first = cs->first(); | 919 String* first = cs->first(); |
| 920 int first_length = first->length(); | 920 int first_length = first->length(); |
| 921 WriteToFlat(first, dest, 0, first_length); | 921 WriteToFlat(first, dest, 0, first_length); |
| 922 String* second = cs->second(); | 922 String* second = cs->second(); |
| 923 WriteToFlat(second, | 923 WriteToFlat(second, |
| 924 dest + first_length, | 924 dest + first_length, |
| 925 0, | 925 0, |
| 926 len - first_length); | 926 len - first_length); |
| 927 } | 927 } |
| 928 cs->set_first(result); | 928 cs->set_first(result); |
| 929 cs->set_second(heap->empty_string()); | 929 cs->set_second(heap->empty_string(), SKIP_WRITE_BARRIER); |
| 930 return result; | 930 return result; |
| 931 } | 931 } |
| 932 default: | 932 default: |
| 933 return this; | 933 return this; |
| 934 } | 934 } |
| 935 } | 935 } |
| 936 | 936 |
| 937 | 937 |
| 938 bool String::MakeExternal(v8::String::ExternalStringResource* resource) { | 938 bool String::MakeExternal(v8::String::ExternalStringResource* resource) { |
| 939 // Externalizing twice leaks the external resource, so it's | 939 // Externalizing twice leaks the external resource, so it's |
| (...skipping 11572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12512 if (break_point_objects()->IsUndefined()) return 0; | 12512 if (break_point_objects()->IsUndefined()) return 0; |
| 12513 // Single break point. | 12513 // Single break point. |
| 12514 if (!break_point_objects()->IsFixedArray()) return 1; | 12514 if (!break_point_objects()->IsFixedArray()) return 1; |
| 12515 // Multiple break points. | 12515 // Multiple break points. |
| 12516 return FixedArray::cast(break_point_objects())->length(); | 12516 return FixedArray::cast(break_point_objects())->length(); |
| 12517 } | 12517 } |
| 12518 #endif // ENABLE_DEBUGGER_SUPPORT | 12518 #endif // ENABLE_DEBUGGER_SUPPORT |
| 12519 | 12519 |
| 12520 | 12520 |
| 12521 } } // namespace v8::internal | 12521 } } // namespace v8::internal |
| OLD | NEW |