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

Side by Side Diff: src/bootstrapper.cc

Issue 9117034: New class for Date objects: caches individual date components. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add constant for index of first barrier-free slot. Created 8 years, 11 months 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
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/date.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 929 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 READ_ONLY)); 940 READ_ONLY));
941 941
942 Handle<Map> string_map = 942 Handle<Map> string_map =
943 Handle<Map>(global_context()->string_function()->initial_map()); 943 Handle<Map>(global_context()->string_function()->initial_map());
944 string_map->set_instance_descriptors(*string_descriptors); 944 string_map->set_instance_descriptors(*string_descriptors);
945 } 945 }
946 946
947 { // --- D a t e --- 947 { // --- D a t e ---
948 // Builtin functions for Date.prototype. 948 // Builtin functions for Date.prototype.
949 Handle<JSFunction> date_fun = 949 Handle<JSFunction> date_fun =
950 InstallFunction(global, "Date", JS_VALUE_TYPE, JSValue::kSize, 950 InstallFunction(global, "Date", JS_DATE_TYPE, JSDate::kSize,
951 isolate->initial_object_prototype(), 951 isolate->initial_object_prototype(),
952 Builtins::kIllegal, true); 952 Builtins::kIllegal, true);
953 953
954 global_context()->set_date_function(*date_fun); 954 global_context()->set_date_function(*date_fun);
955 } 955 }
956 956
957 957
958 { // -- R e g E x p 958 { // -- R e g E x p
959 // Builtin functions for RegExp.prototype. 959 // Builtin functions for RegExp.prototype.
960 Handle<JSFunction> regexp_fun = 960 Handle<JSFunction> regexp_fun =
(...skipping 1413 matching lines...) Expand 10 before | Expand all | Expand 10 after
2374 return from + sizeof(NestingCounterType); 2374 return from + sizeof(NestingCounterType);
2375 } 2375 }
2376 2376
2377 2377
2378 // Called when the top-level V8 mutex is destroyed. 2378 // Called when the top-level V8 mutex is destroyed.
2379 void Bootstrapper::FreeThreadResources() { 2379 void Bootstrapper::FreeThreadResources() {
2380 ASSERT(!IsActive()); 2380 ASSERT(!IsActive());
2381 } 2381 }
2382 2382
2383 } } // namespace v8::internal 2383 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/date.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698